mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-17 21:55:09 +00:00
14 lines
714 B
YAML
14 lines
714 B
YAML
services:
|
|
frontend:
|
|
labels:
|
|
# ${ROUTER}-http to use the middleware to redirect to https
|
|
- traefik.http.routers.${ROUTER}-http.middlewares=https-redirect
|
|
# ${ROUTER}-https the actual router using HTTPS
|
|
# Uses the environment variable SITES_RULE
|
|
- traefik.http.routers.${ROUTER}-https.rule=${SITES_RULE?SITES_RULE 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
|