Jafner.net/homelab/jafner-tools/config/joplin/docker-compose.yml

35 lines
867 B
YAML
Raw Normal View History

2022-02-08 22:29:15 -08:00
version: '3'
services:
joplin:
image: joplin/server:2.6-beta
container_name: joplin
restart: unless-stopped
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
2022-02-25 15:59:35 -08:00
#- traefik.http.middlewares.joplin.headers.customrequestheaders.X-Forwarded-Proto = http
2022-02-08 22:29:15 -08:00
- 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: unless-stopped
env_file:
- .env
volumes:
2022-02-25 15:59:35 -08:00
- $DOCKER_DATA/db:/var/lib/postgresql/data
2022-02-08 22:29:15 -08:00
networks:
- joplin
networks:
joplin:
web:
external: true