Compare commits

...

3 Commits

Author SHA1 Message Date
bb3c00685d Обновить docker-compose.yml 2025-08-12 20:04:40 +03:00
3224a75266 fix_2 2025-08-03 16:47:55 +03:00
5647033ae5 fix_nc 2025-08-03 16:38:46 +03:00

View File

@@ -4,7 +4,7 @@ services:
ports:
- "8080:80"
healthcheck:
test: ["CMD", "nc", "-z", "-v", "localhost", "80"]
test: ["CMD-SHELL", "curl -f http://localhost || exit 1"]
interval: 5s
timeout: 10s
retries: 15
@@ -19,24 +19,24 @@ services:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
healthcheck:
test: ["CMD", "nc", "-z", "-v", "localhost", "5432"]
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB}"]
interval: 5s
timeout: 10s
retries: 15
start_period: 5s
networks:
- app-network
- app-network
redis:
image: redis:latest
healthcheck:
test: ["CMD", "nc", "-z", "-v", "localhost", "6379"]
test: ["CMD-SHELL", "redis-cli ping | grep PONG || exit 1"]
interval: 5s
timeout: 10s
retries: 15
start_period: 5s
networks:
- app-network
- app-network
networks:
app-network: