fix: infra
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user