112 lines
4.7 KiB
YAML
112 lines
4.7 KiB
YAML
services:
|
||
shopify-america:
|
||
image: harbor.bluettipower.com/bluetti-frontend/shopify-america:${COMMIT_SHA}
|
||
container_name: shopify-america
|
||
restart: unless-stopped
|
||
user: "0:0"
|
||
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
|
||
logging:
|
||
driver: json-file
|
||
options:
|
||
max-size: '10m'
|
||
max-file: '3'
|
||
command: sh -c "npm start 2>&1 | tee -a /app/logs/app.log"
|
||
volumes:
|
||
- /var/log/shopify-america:/app/logs:rw
|
||
|
||
|
||
shopify-australia:
|
||
image: harbor.bluettipower.com/bluetti-frontend/shopify-australia:${COMMIT_SHA}
|
||
container_name: shopify-australia
|
||
restart: unless-stopped
|
||
user: "0:0"
|
||
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
|
||
logging:
|
||
driver: json-file
|
||
options:
|
||
max-size: '10m'
|
||
max-file: '3'
|
||
command: sh -c "npm start 2>&1 | tee -a /app/logs/app.log"
|
||
volumes:
|
||
- /var/log/shopify-australia:/app/logs:rw
|
||
|
||
shopify-europe:
|
||
image: harbor.bluettipower.com/bluetti-frontend/shopify-europe:${COMMIT_SHA}
|
||
container_name: shopify-europe
|
||
restart: unless-stopped
|
||
user: "0:0"
|
||
labels:
|
||
# 移除 http 跳转相关的 middleware,即不要为 http 路由配置 redirectscheme
|
||
- traefik.http.routers.shopeu-http.rule=Host(`shop-rc-eu.bluettipower.com`)
|
||
- traefik.http.routers.shopeu-http.entrypoints=http
|
||
|
||
- traefik.enable=true
|
||
- traefik.http.routers.shopeu-https.rule=Host(`shop-rc-eu.bluettipower.com`)
|
||
- traefik.http.routers.shopeu-https.entrypoints=https
|
||
- traefik.http.routers.shopeu-https.tls=true
|
||
- traefik.http.routers.shopeu-https.tls.certresolver=myresolver
|
||
- traefik.http.routers.shopeu-https.middlewares=shopeu-cors
|
||
- traefik.http.services.shopeu.loadbalancer.server.port=3005
|
||
|
||
- traefik.http.middlewares.shopeu-cors.headers.accesscontrolallowmethods=*
|
||
- traefik.http.middlewares.shopeu-cors.headers.accesscontrolallowheaders=*
|
||
- traefik.http.middlewares.shopeu-cors.headers.accesscontrolalloworiginlist=*
|
||
- traefik.http.middlewares.shopeu-redirect.redirectscheme.scheme=https
|
||
- traefik.http.middlewares.shopeu-redirect.redirectscheme.permanent=true
|
||
networks:
|
||
- traefik
|
||
env_file:
|
||
- /bluetti/frontend_project/bluetti-shop-configs/shopify-europe-production.env
|
||
logging:
|
||
driver: json-file
|
||
options:
|
||
max-size: '10m'
|
||
max-file: '3'
|
||
command: sh -c "npm start 2>&1 | tee -a /app/logs/app.log"
|
||
volumes:
|
||
- /var/log/shopify-europe:/app/logs:rw
|
||
|
||
networks:
|
||
traefik:
|
||
external: true |