all modules to network
This commit is contained in:
parent
c92508aa5f
commit
a59b6ee0a0
|
@ -4,6 +4,8 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "6379:6379"
|
- "6379:6379"
|
||||||
|
networks:
|
||||||
|
- toinv-network
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "redis-cli","ping"]
|
test: ["CMD", "redis-cli","ping"]
|
||||||
|
|
||||||
|
@ -22,7 +24,7 @@ services:
|
||||||
- toinv-network
|
- toinv-network
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: curl -f http://localhost:8000/ || exit 1
|
test: curl -f http://localhost:8000/ || exit 1
|
||||||
interval: 2s
|
interval: 5s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
retries: 20
|
retries: 20
|
||||||
|
|
||||||
|
@ -35,7 +37,11 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./env/back.env:/app/.env
|
- ./env/back.env:/app/.env
|
||||||
|
networks:
|
||||||
|
- toinv-network
|
||||||
depends_on:
|
depends_on:
|
||||||
|
back:
|
||||||
|
condition: service_healthy
|
||||||
redis:
|
redis:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue