services: shopify-america: image: harbor.bluettipower.com/bluetti-frontend/shopify-america:${COMMIT_SHA} container_name: shopify-america restart: unless-stopped labels: - traefik.http.routers.shopus-http.rule=Host(`shop-prod-us.bluettipower.com`) - traefik.http.routers.shopus-http.entrypoints=http - traefik.enable=true - traefik.http.routers.shopus-https.rule=Host(`shop-prod-us.bluettipower.com`) - traefik.http.routers.shopus-https.entrypoints=https - traefik.http.routers.shopus-https.tls=true - traefik.http.routers.shopus-https.tls.certresolver=myresolver - traefik.http.routers.shopus-https.middlewares=shopus-cors - traefik.http.services.shopus.loadbalancer.server.port=3002 - traefik.http.middlewares.shopus-cors.headers.accesscontrolallowmethods=* - traefik.http.middlewares.shopus-cors.headers.accesscontrolallowheaders=* - traefik.http.middlewares.shopus-cors.headers.accesscontrolalloworiginlist=* - traefik.http.middlewares.shopus-redirect.redirectscheme.scheme=https - traefik.http.middlewares.shopus-redirect.redirectscheme.permanent=true networks: - traefik env_file: - /bluetti/frontend_project/bluetti-shop-configs/shopify-america-production.env healthcheck: test: ['CMD', 'wget', '-qO-', 'http://localhost:3002/'] interval: 30s timeout: 5s retries: 3 start_period: 15s logging: driver: json-file options: max-size: '10m' max-file: '3' shopify-australia: image: harbor.bluettipower.com/bluetti-frontend/shopify-australia:${COMMIT_SHA} container_name: shopify-australia restart: unless-stopped labels: # 移除 http 跳转相关的 middleware,即不要为 http 路由配置 redirectscheme - traefik.http.routers.shopau-http.rule=Host(`shop-prod-au.bluettipower.com.au`) - traefik.http.routers.shopau-http.entrypoints=http - traefik.http.routers.shopau-http.middlewares=shopau-redirect - traefik.enable=true - traefik.http.routers.shopau-https.rule=Host(`shop-prod-au.bluettipower.com.au`) - traefik.http.routers.shopau-https.entrypoints=https - traefik.http.routers.shopau-https.tls=true - traefik.http.routers.shopau-https.tls.certresolver=myresolver - traefik.http.routers.shopau-https.middlewares=shopau-cors - traefik.http.services.shopau.loadbalancer.server.port=3001 - traefik.http.middlewares.shopau-cors.headers.accesscontrolallowmethods=* - traefik.http.middlewares.shopau-cors.headers.accesscontrolallowheaders=* - traefik.http.middlewares.shopau-cors.headers.accesscontrolalloworiginlist=* - traefik.http.middlewares.shopau-redirect.redirectscheme.scheme=https - traefik.http.middlewares.shopau-redirect.redirectscheme.permanent=true networks: - traefik env_file: - /bluetti/frontend_project/bluetti-shop-configs/shopify-australia-production.env healthcheck: test: ['CMD', 'wget', '-qO-', 'http://localhost:3001/'] interval: 30s timeout: 5s retries: 3 start_period: 15s logging: driver: json-file options: max-size: '10m' max-file: '3' networks: traefik: external: true