chore: 完善生产发布与部署校验

This commit is contained in:
que01 committed 2026-10-13 09:19:57 +08:00
1 parent 048c42207c
commit 5c6ad02f46
18 files changed
+1013 -47

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
name: personal-brand
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:?POSTGRES_USER is required}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required}
POSTGRES_DB: ${POSTGRES_DB:?POSTGRES_DB is required}
ports:
- "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 12
start_period: 5s
networks:
- database
volumes:
postgres-data:
networks:
database:
driver: bridge