mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-08 14:21:05 +00:00
Update multi-bench yaml (#767)
This commit is contained in:
parent
435c9a2f2c
commit
700f1fafd1
@ -1,5 +1,14 @@
|
|||||||
services:
|
services:
|
||||||
frontend:
|
frontend:
|
||||||
labels:
|
labels:
|
||||||
- traefik.http.routers.${ROUTER}.entrypoints=http,https
|
# ${ROUTER}-http to use the middleware to redirect to https
|
||||||
- traefik.http.routers.${ROUTER}.tls.certresolver=le
|
- traefik.http.routers.${ROUTER}-http.middlewares=https-redirect
|
||||||
|
# ${ROUTER}-https the actual router using HTTPS
|
||||||
|
# Uses the environment variable SITES
|
||||||
|
- traefik.http.routers.${ROUTER}-https.rule=Host(${SITES?SITES not set})
|
||||||
|
- traefik.http.routers.${ROUTER}-https.entrypoints=https
|
||||||
|
- traefik.http.routers.${ROUTER}-https.tls=true
|
||||||
|
# Use the service ${ROUTER} with the frontend
|
||||||
|
- traefik.http.routers.${ROUTER}-https.service=${ROUTER}
|
||||||
|
# Use the "le" (Let's Encrypt) resolver created below
|
||||||
|
- traefik.http.routers.${ROUTER}-https.tls.certresolver=le
|
||||||
|
@ -8,9 +8,9 @@ services:
|
|||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.docker.network=traefik-public
|
- traefik.docker.network=traefik-public
|
||||||
- traefik.http.services.${ROUTER?ROUTER not set}.loadbalancer.server.port=8080
|
- traefik.http.services.${ROUTER?ROUTER not set}.loadbalancer.server.port=8080
|
||||||
- traefik.http.routers.${ROUTER}.service=${ROUTER}
|
- traefik.http.routers.${ROUTER}-http.service=${ROUTER}
|
||||||
- traefik.http.routers.${ROUTER}.entrypoints=http
|
- traefik.http.routers.${ROUTER}-http.entrypoints=http
|
||||||
- traefik.http.routers.${ROUTER}.rule=Host(${SITES?SITES not set})
|
- traefik.http.routers.${ROUTER}-http.rule=Host(${SITES?SITES not set})
|
||||||
configurator:
|
configurator:
|
||||||
networks:
|
networks:
|
||||||
- mariadb-network
|
- mariadb-network
|
||||||
|
Loading…
Reference in New Issue
Block a user