Files
xiaoxia-saas/infra/docker/infra.yml
T
XiaoXia Bot 0b990017ca fix(security): 删除 .env.production 并清理硬编码密码
- 删除 .env.production(含占位符密钥,已从版本控制移除)
- scripts/smoke_public_*.py: 密码改为从环境变量 SMOKE_TEST_PASSWORD 读取
- infra/docker/infra.yml: POSTGRES_PASSWORD 改为引用环境变量
- packages/application/auth/jwt_handler.py: 文档示例密钥改为占位符
2026-06-27 18:10:52 +08:00

47 lines
902 B
YAML

version: '3.8'
services:
postgres:
image: postgres:16
container_name: xiaoxia-postgres
restart: always
environment:
POSTGRES_DB: xiaoxia_saas
POSTGRES_USER: xiaoxia
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme_in_production}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- xiaoxia-net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U xiaoxia"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7
container_name: xiaoxia-redis
restart: always
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- xiaoxia-net
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
volumes:
postgres_data:
redis_data:
networks:
xiaoxia-net:
name: xiaoxia-net