Jafner.net/homelab/archives/jafner-tools/joplin/docker-compose.yml
2022-11-22 18:41:50 -08:00

36 lines
887 B
YAML

version: '3'
services:
joplin:
image: joplin/server:2.6-beta
container_name: joplin_server
restart: "no"
env_file:
- .env
depends_on:
- joplin_db
networks:
- web
- joplin
labels:
- traefik.http.routers.joplin.rule=Host(`joplin.jafner.tools`)
- traefik.http.routers.joplin.tls.certresolver=lets-encrypt
- traefik.http.routers.joplin.tls.options=tls12@file
- traefik.http.routers.joplin.middlewares=securityheaders@file
- traefik.http.services.joplin.loadbalancer.server.port=22300
- traefik.http.services.joplin.loadbalancer.passhostheader=true
joplin_db:
image: postgres:13.1
container_name: joplin_db
restart: "no"
env_file:
- .env
volumes:
- $DOCKER_DATA/db:/var/lib/postgresql/data
networks:
- joplin
networks:
joplin:
web:
external: true