Jafner.net/docker_config/joplin/docker-compose.yml
2021-10-02 23:54:53 -07:00

29 lines
639 B
YAML

version: '3'
services:
joplin:
image: joplin/server:2
container_name: joplin
restart: unless-stopped
depends_on:
- joplin_db
networks:
- web
- joplin
labels:
- traefik.http.routers.joplin.rule=Host(`joplin.jafner.net`)
- 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:
- ${DOCKER_DATA}/db:/var/lib/postresql/data
networks:
- joplin
networks:
joplin:
web:
external: true