fix: infra

This commit is contained in:
2026-01-28 12:40:49 +03:00
parent c4abcbdfa9
commit 0ceb92b3be
2 changed files with 21 additions and 10 deletions

View File

@ -10,8 +10,9 @@ services:
POSTGRES_DB: bdbot
ports:
- "5432:5432"
# Persist data in a local folder ./postgres_data
volumes:
- postgres_data:/var/lib/postgresql/data
- ./postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
@ -32,6 +33,3 @@ services:
env_file:
- .env
restart: unless-stopped
volumes:
postgres_data: