Files
integral-resell/deploy/docker/step1-integral-sqszx202/docker-compose.yml

103 lines
2.7 KiB
YAML
Raw Normal View History

2026-06-14 19:06:06 +08:00
# =============================================================
# 步骤一寄卖商城integral-resell独立部署
# 客户:宿迁盛泽鑫商贸 sqszx202
# 包含服务redis · integral-houtai(webman) · integral-h5(Nginx) · edge-nginx(HTTPS入口)
# =============================================================
name: resell-sqszx202
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-sqszx202/redis:local
container_name: integral-redis-sqszx202
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-sqszx202/houtai:latest
container_name: integral-houtai-sqszx202
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-sqszx202/h5:latest
container_name: integral-h5-sqszx202
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-sqszx202
networks: [integral-net]
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx-edge.conf:/etc/nginx/conf.d/default.conf:ro
- ../ssl-cert/j3s4s5.com_cert/nginx:/etc/nginx/ssl/j3s4s5.com_cert:ro
depends_on:
- integral-h5
- integral-houtai