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

50 lines
1.1 KiB
YAML
Raw Normal View History

version: '3'
2021-03-01 11:45:53 -08:00
services:
bookstack:
image: linuxserver/bookstack
container_name: bookstack
env_file:
- .env
2021-03-01 11:45:53 -08:00
environment:
- PUID=1000
- PGID=1000
- TZ=America/Los_Angeles
2021-03-01 11:45:53 -08:00
- DB_HOST=bookstack_db
- DB_USER=bookstack
- DB_DATABASE=bookstackapp
- APP_URL=https://docs.jafner.net
volumes:
- "${DOCKER_DATA}/bookstack_data:/config"
2021-03-01 11:45:53 -08:00
restart: unless-stopped
depends_on:
- bookstack_db
networks:
- web
- bookstack
2021-03-01 11:45:53 -08:00
labels:
- traefik.http.routers.bookstack.rule=Host(`docs.jafner.net`)
- traefik.http.routers.bookstack.tls=true
- traefik.http.routers.bookstack.tls.certresolver=lets-encrypt
2021-03-01 11:45:53 -08:00
bookstack_db:
image: linuxserver/mariadb
container_name: bookstack_db
env_file:
- .env
2021-03-01 11:45:53 -08:00
environment:
- PUID=1000
- PGID=1000
- TZ=America/Los_Angeles
2021-03-01 11:45:53 -08:00
- MYSQL_DATABASE=bookstackapp
- MYSQL_USER=bookstack
volumes:
- "${DOCKER_DATA}/db_data:/config"
2021-03-01 11:45:53 -08:00
restart: unless-stopped
networks:
- bookstack
2021-03-01 11:45:53 -08:00
networks:
web:
external: true
bookstack: