add joplin
This commit is contained in:
parent
975b430284
commit
fb1a5794de
37
joplin/docker-compose.yml
Normal file
37
joplin/docker-compose.yml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
version: "3.5"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik_default:
|
||||||
|
external: true
|
||||||
|
joplin_default:
|
||||||
|
external: false
|
||||||
|
|
||||||
|
services:
|
||||||
|
joplin:
|
||||||
|
container_name: joplin
|
||||||
|
image: joplin/server:2.14.1-beta
|
||||||
|
restart: always
|
||||||
|
env_file: ./secrets/joplin.secret
|
||||||
|
networks:
|
||||||
|
- traefik_default
|
||||||
|
- joplin_default
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.joplin.rule=Host(`joplin.hugowillaume.com`)"
|
||||||
|
- "traefik.http.routers.joplin.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.joplin.tls.certresolver=myhttpchallenge"
|
||||||
|
- "traefik.http.services.joplin.loadbalancer.server.port=22300"
|
||||||
|
|
||||||
|
db:
|
||||||
|
container_name: joplin_db
|
||||||
|
image: postgres:16
|
||||||
|
networks:
|
||||||
|
- joplin_default
|
||||||
|
env_file: ./secrets/joplin_db.secret
|
||||||
|
volumes:
|
||||||
|
- ./joplin_data/postgres:/var/lib/postgresql/data
|
||||||
|
# ports:
|
||||||
|
# - "5432:5432"
|
||||||
|
restart: always
|
||||||
8
joplin/secrets/joplin.example
Normal file
8
joplin/secrets/joplin.example
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
APP_PORT=22300
|
||||||
|
APP_BASE_URL=https://joplin.hugowillaume.com
|
||||||
|
DB_CLIENT=pg
|
||||||
|
POSTGRES_PASSWORD=POSTGRES_PASSWORD
|
||||||
|
POSTGRES_DATABASE=POSTRES_DATABASE
|
||||||
|
POSTGRES_USER=POSTGRES_USER
|
||||||
|
POSTGRES_PORT=5432
|
||||||
|
POSTGRES_HOST=db
|
||||||
3
joplin/secrets/joplin_db.example
Normal file
3
joplin/secrets/joplin_db.example
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
POSTGRES_PASSWORD=POSTGRES_PASSWORD
|
||||||
|
POSTGRES_USER=POSTRES_USER
|
||||||
|
POSTGRES_DB=POSTGRES_DATABASE
|
||||||
Loading…
x
Reference in New Issue
Block a user