Добавлена проверка порядка поднятия контейнеров
This commit is contained in:
@@ -20,6 +20,11 @@ services:
|
|||||||
- ./postgres/backups:/docker-entrypoint-backups:ro
|
- ./postgres/backups:/docker-entrypoint-backups:ro
|
||||||
- ./postgres/init:/docker-entrypoint-initdb.d:ro
|
- ./postgres/init:/docker-entrypoint-initdb.d:ro
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
|
|
||||||
krekbot-economy:
|
krekbot-economy:
|
||||||
@@ -32,6 +37,10 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
- ./economy-bot/.env
|
- ./economy-bot/.env
|
||||||
|
depends_on:
|
||||||
|
postgres:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
krekbot-moderation:
|
krekbot-moderation:
|
||||||
build: ./moderation-bot
|
build: ./moderation-bot
|
||||||
image: krekbot-moderation
|
image: krekbot-moderation
|
||||||
@@ -41,4 +50,7 @@ services:
|
|||||||
- krekbots-network
|
- krekbots-network
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
- ./moderation-bot/.env
|
- ./moderation-bot/.env
|
||||||
|
depends_on:
|
||||||
|
postgres:
|
||||||
|
condition: service_healthy
|
||||||
Reference in New Issue
Block a user