101 lines
2.7 KiB
YAML
101 lines
2.7 KiB
YAML
|
|
# =============================================================
|
|||
|
|
# 步骤一:寄卖商城(integral-resell)独立部署
|
|||
|
|
# 客户:宝应宏煜春商贸 byhlc112
|
|||
|
|
# 包含服务:redis · integral-houtai(webman) · integral-h5(Nginx) · edge-nginx(HTTPS入口)
|
|||
|
|
# =============================================================
|
|||
|
|
|
|||
|
|
name: resell-byhlc112
|
|||
|
|
|
|||
|
|
x-common: &common
|
|||
|
|
restart: unless-stopped
|
|||
|
|
environment:
|
|||
|
|
TZ: ${TZ:-Asia/Shanghai}
|
|||
|
|
logging:
|
|||
|
|
driver: json-file
|
|||
|
|
options:
|
|||
|
|
max-size: "20m"
|
|||
|
|
max-file: "5"
|
|||
|
|
|
|||
|
|
networks:
|
|||
|
|
integral-net:
|
|||
|
|
driver: bridge
|
|||
|
|
|
|||
|
|
volumes:
|
|||
|
|
integral-redis-data:
|
|||
|
|
integral-runtime:
|
|||
|
|
|
|||
|
|
services:
|
|||
|
|
redis:
|
|||
|
|
<<: *common
|
|||
|
|
build:
|
|||
|
|
context: .
|
|||
|
|
dockerfile: redis.Dockerfile
|
|||
|
|
image: resell-byhlc112/redis:local
|
|||
|
|
container_name: integral-redis-byhlc112
|
|||
|
|
command: ["--requirepass", "${REDIS_PASSWORD}", "--appendonly", "yes"]
|
|||
|
|
volumes:
|
|||
|
|
- integral-redis-data:/data
|
|||
|
|
networks: [integral-net]
|
|||
|
|
healthcheck:
|
|||
|
|
test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "ping"]
|
|||
|
|
interval: 10s
|
|||
|
|
timeout: 3s
|
|||
|
|
retries: 5
|
|||
|
|
|
|||
|
|
integral-houtai:
|
|||
|
|
<<: *common
|
|||
|
|
build:
|
|||
|
|
context: ../integral-resell
|
|||
|
|
dockerfile: houtai.Dockerfile
|
|||
|
|
image: resell-byhlc112/houtai:latest
|
|||
|
|
container_name: integral-houtai-byhlc112
|
|||
|
|
networks: [integral-net]
|
|||
|
|
ports:
|
|||
|
|
- "${RESELL_API_PORT:-18085}:8785"
|
|||
|
|
volumes:
|
|||
|
|
- ${RESELL_HOUTAI_DIR}:/app
|
|||
|
|
- ./houtai.env:/app/.env:ro
|
|||
|
|
- integral-runtime:/app/runtime
|
|||
|
|
depends_on:
|
|||
|
|
redis:
|
|||
|
|
condition: service_healthy
|
|||
|
|
|
|||
|
|
integral-h5:
|
|||
|
|
<<: *common
|
|||
|
|
build:
|
|||
|
|
context: ../integral-resell
|
|||
|
|
dockerfile: h5.Dockerfile
|
|||
|
|
image: resell-byhlc112/h5:latest
|
|||
|
|
container_name: integral-h5-byhlc112
|
|||
|
|
networks: [integral-net]
|
|||
|
|
environment:
|
|||
|
|
TZ: ${TZ:-Asia/Shanghai}
|
|||
|
|
INTEGRAL_TITLE: ${INTEGRAL_TITLE}
|
|||
|
|
INTEGRAL_API_PUBLIC_URL: ${INTEGRAL_API_PUBLIC_URL}
|
|||
|
|
INTEGRAL_IMG_PUBLIC_URL: ${INTEGRAL_IMG_PUBLIC_URL}
|
|||
|
|
INTEGRAL_H5_PUBLIC_URL: ${INTEGRAL_H5_PUBLIC_URL}
|
|||
|
|
INTEGRAL_SN_ID: ${INTEGRAL_SN_ID}
|
|||
|
|
INTEGRAL_APP_STR: ${INTEGRAL_APP_STR}
|
|||
|
|
INTEGRAL_CONTRACT_PAGE: ${INTEGRAL_CONTRACT_PAGE}
|
|||
|
|
volumes:
|
|||
|
|
- ${RESELL_H5_DIR}:/usr/share/nginx/html
|
|||
|
|
ports:
|
|||
|
|
- "${INTEGRAL_H5_PORT:-18080}:80"
|
|||
|
|
depends_on:
|
|||
|
|
- integral-houtai
|
|||
|
|
|
|||
|
|
edge-nginx:
|
|||
|
|
<<: *common
|
|||
|
|
image: nginx:1.25-alpine
|
|||
|
|
container_name: edge-nginx-byhlc112
|
|||
|
|
networks: [integral-net]
|
|||
|
|
ports:
|
|||
|
|
- "80:80"
|
|||
|
|
- "443:443"
|
|||
|
|
volumes:
|
|||
|
|
- ./nginx-edge.conf:/etc/nginx/conf.d/default.conf:ro
|
|||
|
|
- ../ssl-cert/lehoo6.com_cert/nginx:/etc/nginx/ssl/lehoo6.com_cert:ro
|
|||
|
|
depends_on:
|
|||
|
|
- integral-h5
|
|||
|
|
- integral-houtai
|