docker file

This commit is contained in:
朱潮 2026-01-18 10:27:14 +08:00
parent de3d5f6bf1
commit fa3e30cc07

View File

@ -11,10 +11,10 @@ services:
ports:
- "5432:5432"
volumes:
- ../postgres_data:/var/lib/postgresql/data
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U agent_db"]
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
@ -47,6 +47,5 @@ services:
timeout: 10s
retries: 3
start_period: 40s
volumes:
postgres_data:
postgres_data: