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

40 lines
823 B
YAML
Raw Normal View History

2021-03-01 11:45:53 -08:00
version: '3'
services:
joplin:
2021-07-08 22:09:37 -07:00
image: joplin/server:2.2.5-beta
2021-03-01 11:45:53 -08:00
container_name: joplin
restart: unless-stopped
2021-07-05 13:33:34 -07:00
volumes:
- joplin-data:/home/joplin
2021-03-01 11:45:53 -08:00
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
2021-07-05 13:33:34 -07:00
volumes:
- joplin-db:/var/lib/postresql/data
2021-03-01 11:45:53 -08:00
networks:
- joplin
env_file:
- .env
2021-07-05 13:33:34 -07:00
volumes:
joplin-data:
joplin-db:
2021-03-01 11:45:53 -08:00
networks:
joplin:
web:
external: true