all modules to network
This commit is contained in:
parent
c92508aa5f
commit
a59b6ee0a0
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue