Добавлена проверка порядка поднятия контейнеров

This commit is contained in:
2025-08-22 21:49:24 +07:00
parent 1f3d9035ec
commit 024b9c535c

View File

@@ -20,6 +20,11 @@ services:
- ./postgres/backups:/docker-entrypoint-backups:ro
- ./postgres/init:/docker-entrypoint-initdb.d:ro
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
krekbot-economy:
@@ -32,6 +37,10 @@ services:
env_file:
- .env
- ./economy-bot/.env
depends_on:
postgres:
condition: service_healthy
krekbot-moderation:
build: ./moderation-bot
image: krekbot-moderation
@@ -41,4 +50,7 @@ services:
- krekbots-network
env_file:
- .env
- ./moderation-bot/.env
- ./moderation-bot/.env
depends_on:
postgres:
condition: service_healthy