diff --git a/bookstack/docker-compose.yml b/bookstack/docker-compose.yml new file mode 100644 index 0000000..13b0873 --- /dev/null +++ b/bookstack/docker-compose.yml @@ -0,0 +1,48 @@ +version: '3' + +services: + + bookstack: + image: linuxserver/bookstack:latest + restart: "always" + container_name: bookstack + networks: + - intern + - web + ports: + - 80 + environment: + #MYSQL_HOST: maria105master:3306 + #MYSQL_PASSWORD: 'mu4Ga8TeOo' + #MYSQL_DATABASE: bookstack + #MYSQL_USER: bowiki + DB_HOST: maria105master:3306 + DB_DATABASE: bookstack + DB_USERNAME: bowiki + DB_PASSWORD: mu4Ga8TeOo + MYSQL_INITDB_SKIP_TZINFO: 1 + APP_URL: https://wiki.juliuslab.de + labels: + - "traefik.enable=true" + - "traefik.http.routers.bookstack.entrypoints=http" + - "traefik.http.routers.bookstack.rule=Host(`wiki.juliuslab.de`)" + - "traefik.http.routers.bookstack.middlewares=https-redirect@file" + - "traefik.http.routers.bookstack-sec.entrypoints=https" + - "traefik.http.routers.bookstack-sec.middlewares=default-headers@file" + - "traefik.http.routers.bookstack-sec.rule=Host(`wiki.juliuslab.de`)" + - "traefik.http.routers.bookstack-sec.tls=true" + - "traefik.http.routers.bookstack-sec.tls.options=myTLSOptions@file" + - "traefik.http.routers.bookstack-sec.tls.certresolver=le" + + volumes: + - /srv/docker/data/bookstack:/config + external_links: + - maria105master + + +networks: + intern: + external: true + web: + external: true +