all modules to network

This commit is contained in:
aarizona 2024-08-07 22:24:46 +03:00
parent c92508aa5f
commit a59b6ee0a0
1 changed files with 7 additions and 1 deletions

View File

@ -4,6 +4,8 @@ services:
restart: always
ports:
- "6379:6379"
networks:
- toinv-network
healthcheck:
test: ["CMD", "redis-cli","ping"]
@ -22,7 +24,7 @@ services:
- toinv-network
healthcheck:
test: curl -f http://localhost:8000/ || exit 1
interval: 2s
interval: 5s
timeout: 3s
retries: 20
@ -35,7 +37,11 @@ services:
restart: always
volumes:
- ./env/back.env:/app/.env
networks:
- toinv-network
depends_on:
back:
condition: service_healthy
redis:
condition: service_healthy