Update docker-compose app labels to Træfik 2.0
This commit is contained in:
parent
432f954173
commit
668634ecba
|
|
@ -1,4 +1,4 @@
|
||||||
version: '3.5'
|
version: '3.7'
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: mariadb:10.4
|
image: mariadb:10.4
|
||||||
|
|
@ -45,14 +45,17 @@ services:
|
||||||
- web
|
- web
|
||||||
- backend
|
- backend
|
||||||
labels:
|
labels:
|
||||||
- "traefik.frontend.headers.STSPreload=true"
|
|
||||||
- "traefik.frontend.headers.STSSeconds=31536000"
|
|
||||||
- "traefik.backend=bookstack"
|
|
||||||
- "traefik.docker.network=web"
|
|
||||||
- "traefik.frontend.rule=Host:${APP_URL_BASE}"
|
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.port=8888"
|
- "traefik.http.routers.bookstack.entrypoints=http"
|
||||||
- "traefik.default.protocol=http"
|
- "traefik.http.routers.bookstack.rule=Host(`${APP_URL_BASE}`)"
|
||||||
|
- "traefik.http.routers.bookstack.middlewares=redirect-https@file"
|
||||||
|
- "traefik.http.routers.bookstack-secure.entrypoints=https"
|
||||||
|
- "traefik.http.routers.bookstack-secure.rule=Host(`${APP_URL_BASE}`)"
|
||||||
|
- "traefik.http.routers.bookstack-secure.tls=true"
|
||||||
|
- "traefik.http.routers.bookstack-secure.tls.certresolver=default"
|
||||||
|
- "traefik.http.routers.bookstack-secure.service=bookstack"
|
||||||
|
- "traefik.http.services.bookstack.loadbalancer.server.scheme=http"
|
||||||
|
- "traefik.http.services.bookstack.loadbalancer.server.port=8888"
|
||||||
|
|
||||||
# av:
|
# av:
|
||||||
# image: jjtc/av:0.100.0-r0
|
# image: jjtc/av:0.100.0-r0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue