新增版本控制

This commit is contained in:
2026-07-01 16:20:26 +08:00
parent 5dbfdec2b5
commit 9f6a5afae2
15 changed files with 3283 additions and 0 deletions

76
docker-compose.yml Normal file
View File

@@ -0,0 +1,76 @@
services:
shopify-america:
build:
context: .
dockerfile: apps/shopify-america/Dockerfile
image: shopify-america:latest
container_name: shopify-america
restart: unless-stopped
labels:
- traefik.http.routers.shoptestus.rule=Host(`shop-dev-us.bluettipower.com`)
- traefik.http.routers.shoptestus.middlewares=shoptestus-cors
- traefik.http.middlewares.shoptestus-cors.headers.accesscontrolallowmethods=*
- traefik.http.middlewares.shoptestus-cors.headers.accesscontrolallowheaders=*
- traefik.http.middlewares.shoptestus-cors.headers.accesscontrolalloworiginlist=*
- traefik.http.middlewares.shoptestus-redirect.redirectscheme.scheme=https
- traefik.http.middlewares.shoptestus-redirect.redirectscheme.permanent=true
- traefik.http.services.shoptestus.loadbalancer.server.port=3002
- traefik.http.routers.shoptestus.tls=true
- traefik.http.routers.shoptestus.tls.certresolver=myresolver
networks:
- traefik
ports:
- '3002:3002'
env_file:
- apps/shopify-america/.env.${BUILD_ENV:-development}
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:
build:
context: .
dockerfile: apps/shopify-australia/Dockerfile
image: shopify-australia:latest
container_name: shopify-australia
restart: unless-stopped
labels:
- traefik.http.routers.shoptestau.rule=Host(`shop-dev-au.bluettipower.com`)
- traefik.http.routers.shoptestau.middlewares=shoptestau-cors
- traefik.http.middlewares.shoptestau-cors.headers.accesscontrolallowmethods=*
- traefik.http.middlewares.shoptestau-cors.headers.accesscontrolallowheaders=*
- traefik.http.middlewares.shoptestau-cors.headers.accesscontrolalloworiginlist=*
- traefik.http.middlewares.shoptestau-redirect.redirectscheme.scheme=https
- traefik.http.middlewares.shoptestau-redirect.redirectscheme.permanent=true
- traefik.http.services.shoptestau.loadbalancer.server.port=3001
- traefik.http.routers.shoptestau.tls=true
- traefik.http.routers.shoptestau.tls.certresolver=myresolver
networks:
- traefik
ports:
- '3001:3001'
env_file:
- apps/shopify-australia/.env.${BUILD_ENV:-development}
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