Files
drone-cicd/docker-compose-release.yaml
2026-07-01 16:20:26 +08:00

79 lines
3.1 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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-rc-us.bluettipower.com`)
- traefik.http.routers.shopus-http.entrypoints=http
- traefik.enable=true
- traefik.http.routers.shopus-https.rule=Host(`shop-rc-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-rc-au.bluettipower.com`)
- traefik.http.routers.shopau-http.entrypoints=http
- traefik.enable=true
- traefik.http.routers.shopau-https.rule=Host(`shop-rc-au.bluettipower.com`)
- 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