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

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/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
@@ -42,3 +51,6 @@ services:
env_file: env_file:
- .env - .env
- ./moderation-bot/.env - ./moderation-bot/.env
depends_on:
postgres:
condition: service_healthy