diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 2caf1a7..bf0d661 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -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: