Compare commits

...

3 Commits

Author SHA1 Message Date
6f5340c877 postgres_enviroments 2025-08-03 16:26:28 +03:00
feeb1286e8 redis 2025-08-03 16:18:51 +03:00
e62eff7761 postgres 2025-08-03 16:07:11 +03:00

View File

@@ -12,6 +12,32 @@ services:
networks:
- 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:
app-network:
driver: bridge