38 lines
835 B
YAML
38 lines
835 B
YAML
version: "3.9"
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
internal:
|
|
external: true
|
|
|
|
volumes:
|
|
bookstack:
|
|
name: bookstack
|
|
|
|
services:
|
|
bookstack:
|
|
image: linuxserver/bookstack
|
|
restart: unless-stopped
|
|
container_name: bookstack
|
|
depends_on:
|
|
- mysql8
|
|
volumes:
|
|
- bookstack:/config
|
|
environment:
|
|
- PUID=1000
|
|
- GUID=1000
|
|
- APP_URL=http://bookstack.localhost
|
|
- DB_HOST=mysql8
|
|
- DB_USER=bookstack
|
|
- DB_PASS=sdfl39302klsdjf
|
|
- DB_DATABASE=bookstack
|
|
networks:
|
|
- internal
|
|
- proxy
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.bookstack.entrypoints=web"
|
|
- "traefik.http.routers.bookstack.rule=Host(`bookstack.localhost`) || Host(`bookstack.local`)"
|
|
- "traefik.http.services.bookstack.loadbalancer.server.port=80"
|