Ajouter joplin/docker-compose.yml

This commit is contained in:
Lecourt Dimitri 2024-10-06 21:21:16 +02:00
parent e94cd02d04
commit 57984832b2

57
joplin/docker-compose.yml Normal file
View file

@ -0,0 +1,57 @@
name: joplin
services:
db:
image: postgres:16
container_name: joplin-postgres
volumes:
- /srv/appdata/joplpin/joplindb:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=<strong password>
- POSTGRES_USER=postgres
- POSTGRES_DB=joplin
networks:
- db_joplin
app:
image: joplin/server:latest
container_name: joplin-app
depends_on:
- db
ports:
- "22300:22300"
restart: unless-stopped
environment:
- APP_PORT=22300
- APP_BASE_URL=https://<your joplin url>
- DB_CLIENT=pg
- POSTGRES_PASSWORD=<same stron password>
- POSTGRES_DATABASE=joplin
- POSTGRES_USER=postgres
- POSTGRES_PORT=5432
- POSTGRES_HOST=db
- MAILER_ENABLED=1
- MAILER_HOST=smtp.mail.me.com
- MAILER_PORT=587
- MAILER_SECURITY=1
- MAILER_AUTH_USER=user@domain
- MAILER_AUTH_PASSWORD=redacted
- MAILER_NOREPLY_NAME=joplinserver
- MAILER_NOREPLY_EMAIL=no-reply@domain
labels:
- "traefik.enable=true"
- "traefik.http.routers.joplin.rule=Host(`<your joplin URL>`)"
- "traefik.http.routers.joplin.entrypoints=websecure"
- "traefik.http.routers.joplin.tls=true"
- "traefik.http.routers.joplin.tls.certResolver=letsencrypt"
- "traefik.docker.network=web"
- homepage.group=Travail
- homepage.name=Notes
- homepage.icon=joplin.png
- homepage.href=https://<your joplin URL>
- homepage.description=Joplin
networks:
- db_joplin
- web