Jafner.net/archive/docker_config/joplin/docker-compose.yml

35 lines
865 B
YAML
Raw Normal View History

2021-03-01 11:45:53 -08:00
version: '3'
services:
joplin:
2022-01-04 13:56:21 -08:00
image: joplin/server:2.6-beta
2021-03-01 11:45:53 -08:00
container_name: joplin
restart: unless-stopped
2022-01-04 13:56:21 -08:00
env_file:
- .env
2021-03-01 11:45:53 -08:00
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
2022-01-04 13:56:21 -08:00
- traefik.http.middlewares.joplin.headers.customrequestheaders.X-Forwarded-Proto = http
2021-03-01 11:45:53 -08:00
- traefik.http.services.joplin.loadbalancer.server.port=22300
2022-01-04 13:56:21 -08:00
- traefik.http.services.joplin.loadbalancer.passhostheader=true
2021-03-01 11:45:53 -08:00
joplin_db:
image: postgres:13.1
container_name: joplin_db
restart: unless-stopped
2022-01-04 13:56:21 -08:00
env_file:
- .env
2021-07-05 13:33:34 -07:00
volumes:
2021-10-02 23:54:53 -07:00
- ${DOCKER_DATA}/db:/var/lib/postresql/data
2021-03-01 11:45:53 -08:00
networks:
- joplin
2021-07-05 13:33:34 -07:00
2021-03-01 11:45:53 -08:00
networks:
joplin:
web:
external: true