docker updated

This commit is contained in:
2025-11-03 09:05:53 +08:00
parent c9931d670e
commit 46f5f424bc

View File

@@ -12,7 +12,25 @@ services:
- /app/node_modules - /app/node_modules
networks: networks:
- gitea_network - traefik-public
- default
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.services.healthy-oil-frontend.loadbalancer.server.port=80
- traefik.http.routers.healthy-oil-frontend-http.rule=Host(`healthy-oil.develop-cat.com`)
- traefik.http.routers.healthy-oil-frontend-http.entrypoints=http
- traefik.http.routers.healthy-oil-frontend-https.rule=Host(`healthy-oil.develop-cat.com`)
- traefik.http.routers.healthy-oil-frontend-https.entrypoints=https
- traefik.http.routers.healthy-oil-frontend-https.tls=true
- traefik.http.routers.healthy-oil-frontend-https.tls.certresolver=le
# Enable redirection for HTTP and HTTPS
- traefik.http.routers.healthy-oil-frontend-http.middlewares=https-redirect
networks: networks:
gitea_network: traefik-public: