Compare commits
6 Commits
19bb3e2a63
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| bb3c00685d | |||
| 3224a75266 | |||
| 5647033ae5 | |||
| 6f5340c877 | |||
| feeb1286e8 | |||
| e62eff7761 |
@@ -4,7 +4,33 @@ 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
|
||||
start_period: 5s
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
postgres:
|
||||
image: postgres:latest
|
||||
environment:
|
||||
POSTGRES_DB: mydb
|
||||
POSTGRES_USER: user
|
||||
POSTGRES_PASSWORD: password
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB}"]
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
start_period: 5s
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
redis:
|
||||
image: redis:latest
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "redis-cli ping | grep PONG || exit 1"]
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
|
||||
Reference in New Issue
Block a user