fix: infra.yml容器名加-staging后缀,与deploy脚本命名规范一致
Deploy / Staging E2E Tests (push) Has been skipped
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 133h33m59s
CI/CD Pipeline / Frontend Lint (push) Failing after 133h36m33s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 133h36m33s

This commit is contained in:
xiaoxia
2026-07-03 23:17:52 +08:00
parent c9b9fbc397
commit 7e87e7e985
Regular → Executable
+16 -15
View File
@@ -1,4 +1,4 @@
version: '3.8'
name: xiaoxia-staging
# ===========================================
# 日志轮转配置(所有服务共享)
@@ -10,35 +10,35 @@ x-logging: &default-logging
max-file: "3"
services:
postgres:
postgres-staging:
image: postgres:16
container_name: xiaoxia-postgres
container_name: xiaoxia-postgres-staging
restart: always
environment:
POSTGRES_DB: xiaoxia_saas
POSTGRES_USER: xiaoxia
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme_in_production}
POSTGRES_DB: ${POSTGRES_DB:-xiaoxia_saas_staging}
POSTGRES_USER: ${POSTGRES_USER:-xiaoxia}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme_in_staging}
ports:
- "127.0.0.1:5432:5432"
- "127.0.0.1:${POSTGRES_PORT:-5434}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- postgres_staging_data:/var/lib/postgresql/data
networks:
- xiaoxia-net
logging: *default-logging
healthcheck:
test: ["CMD-SHELL", "pg_isready -U xiaoxia"]
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-xiaoxia} -d ${POSTGRES_DB:-xiaoxia_saas_staging}"]
interval: 30s
timeout: 5s
retries: 5
redis:
redis-staging:
image: redis:7
container_name: xiaoxia-redis
container_name: xiaoxia-redis-staging
restart: always
ports:
- "127.0.0.1:6379:6379"
- "127.0.0.1:${REDIS_PORT:-6381}:6379"
volumes:
- redis_data:/data
- redis_staging_data:/data
networks:
- xiaoxia-net
logging: *default-logging
@@ -49,9 +49,10 @@ services:
retries: 5
volumes:
postgres_data:
redis_data:
postgres_staging_data:
redis_staging_data:
networks:
xiaoxia-net:
external: true
name: xiaoxia-net-staging