fix Deployment

This commit is contained in:
2025-07-28 16:08:59 +08:00
parent 3257239792
commit c12bd0f0db

View File

@@ -19,6 +19,12 @@ services:
- ./scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- tyapi-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U tyapi_user -d tyapi -h localhost"]
interval: 30s
timeout: 10s
retries: 5
start_period: 120s
restart: unless-stopped
deploy:
resources: