chore: app healthcheck

This commit is contained in:
karishmas6
2024-10-31 15:25:23 +05:30
parent 4ebe372908
commit db840bd1b4

View File

@@ -8,12 +8,15 @@ services:
target: production
env_file: .env
ports:
- "5173:80"
- "8080:8080"
- "5173:80" # Only expose Nginx
depends_on:
- db
- minio
- redis
db:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
interval: 10s
timeout: 5s
retries: 5
db:
image: postgres:13