加固部署配置与敏感路径拦截
Storage Persistence Guard / storage-persistence-audit (pull_request) Has been cancelled

This commit is contained in:
Cheng Zhou
2026-06-22 15:35:48 +08:00
parent ee70531794
commit d23dead775
3 changed files with 28 additions and 4 deletions
-4
View File
@@ -10,8 +10,6 @@ services:
volumes:
# 持久化数据到 Linux 本地,防止重启丢失
- ./pg_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ctms_user -d ctms_db"]
interval: 5s
@@ -26,8 +24,6 @@ services:
dockerfile: Dockerfile
container_name: ctms_backend
restart: always
ports:
- "8000:8000"
environment:
DATABASE_URL: postgresql+asyncpg://ctms_user:secret_password@db/ctms_db
depends_on: