Jafner.net/docker_config/joplin/docker-compose.yml
2021-07-08 22:09:37 -07:00

40 lines
823 B
YAML

version: '3'
services:
joplin:
image: joplin/server:2.2.5-beta
container_name: joplin
restart: unless-stopped
volumes:
- joplin-data:/home/joplin
env_file:
- .env
depends_on:
- joplin_db
networks:
- web
- joplin
labels:
- traefik.http.routers.joplin.rule=Host(`joplin.jafner.net`)
- traefik.http.routers.joplin.tls=true
- traefik.http.routers.joplin.tls.certresolver=lets-encrypt
- traefik.http.services.joplin.loadbalancer.server.port=22300
joplin_db:
image: postgres:13.1
container_name: joplin_db
restart: unless-stopped
volumes:
- joplin-db:/var/lib/postresql/data
networks:
- joplin
env_file:
- .env
volumes:
joplin-data:
joplin-db:
networks:
joplin:
web:
external: true