feat: 新增崔曦文(cxw)租户配置
- 添加 Nginx 配置 cxw.conf - 添加 docker-compose 容器配置(frontend/backend/redis) - 添加 .env.cxw 环境配置 - 端口分配: 前端3016, 后端8016, Redis 6396
This commit is contained in:
@@ -469,6 +469,91 @@ services:
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
|
||||
# ============================================
|
||||
# 崔曦文 (cxw.ireborn.com.cn)
|
||||
# ============================================
|
||||
cxw-frontend:
|
||||
image: kaopeilian-frontend:shared
|
||||
container_name: cxw-frontend
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
ports:
|
||||
- "3016:80"
|
||||
volumes:
|
||||
- /root/aiedu/kaopeilian-frontend/dist:/usr/share/nginx/html:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
networks:
|
||||
- prod-network
|
||||
- kaopeilian-network
|
||||
depends_on:
|
||||
- cxw-backend
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:80/"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
cxw-backend:
|
||||
build:
|
||||
context: ./kaopeilian-backend
|
||||
dockerfile: Dockerfile
|
||||
image: prod-multi-cxw-backend:latest
|
||||
container_name: cxw-backend
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- ./kaopeilian-backend/.env.cxw
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- PYTHONPATH=/app
|
||||
ports:
|
||||
- "8016:8000"
|
||||
volumes:
|
||||
- ./kaopeilian-backend/app:/app/app
|
||||
- /data/prod-envs/uploads-cxw:/app/uploads
|
||||
- /data/prod-envs/logs-cxw:/app/logs
|
||||
- /data/prod-envs/secrets:/app/secrets:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
||||
networks:
|
||||
- prod-network
|
||||
- kaopeilian-network
|
||||
depends_on:
|
||||
prod-mysql:
|
||||
condition: service_healthy
|
||||
cxw-redis:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
|
||||
cxw-redis:
|
||||
image: redis:7.2-alpine
|
||||
container_name: cxw-redis
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
ports:
|
||||
- "6396:6379"
|
||||
volumes:
|
||||
- /data/redis-data/cxw:/data
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
networks:
|
||||
- prod-network
|
||||
command: redis-server --appendonly yes --maxmemory 128mb --maxmemory-policy allkeys-lru
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
|
||||
# 网络配置
|
||||
networks:
|
||||
prod-network:
|
||||
|
||||
Reference in New Issue
Block a user