Compare commits
3 Commits
19bb3e2a63
...
6f5340c877
| Author | SHA1 | Date | |
|---|---|---|---|
| 6f5340c877 | |||
| feeb1286e8 | |||
| e62eff7761 |
@@ -12,6 +12,32 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- app-network
|
- app-network
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
image: postgres:latest
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: mydb
|
||||||
|
POSTGRES_USER: user
|
||||||
|
POSTGRES_PASSWORD: password
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "nc", "-z", "-v", "localhost", "5432"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 15
|
||||||
|
start_period: 5s
|
||||||
|
networks:
|
||||||
|
- app-network
|
||||||
|
|
||||||
|
redis:
|
||||||
|
image: redis:latest
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "nc", "-z", "-v", "localhost", "6379"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 15
|
||||||
|
start_period: 5s
|
||||||
|
networks:
|
||||||
|
- app-network
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
app-network:
|
app-network:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|||||||
Reference in New Issue
Block a user