Compare commits
3 Commits
6f5340c877
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| bb3c00685d | |||
| 3224a75266 | |||
| 5647033ae5 |
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user