File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,6 +48,20 @@ services:
4848 - ./data/certbot/www:/var/www/certbot
4949 # comment the following line if you are using your own gateway
5050 - ./conf/nginx:/conf/
51+ labels :
52+ - " traefik.enable=true"
53+ - " traefik.docker.network=proxy"
54+ - " traefik.http.routers.frontend.entrypoints=websecure"
55+ - " traefik.http.routers.frontend.rule=Host(`${DOMAIN}`)"
56+ - " traefik.http.routers.frontend.tls=true"
57+ - " traefik.http.routers.frontend.tls.certresolver=letsencrypt"
58+ - " traefik.http.services.frontend.loadbalancer.server.port=80"
59+ # Optional: Redirect HTTP to HTTPS
60+ - " traefik.http.routers.frontend-http.entrypoints=web"
61+ - " traefik.http.routers.frontend-http.rule=Host(`${DOMAIN}`)"
62+ - " traefik.http.routers.frontend-http.middlewares=redirect-to-https"
63+ - " traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
64+
5165 migrations :
5266 << : *default-api
5367 command : init
You can’t perform that action at this time.
0 commit comments