Stage 04.1 - storage foundation (PostgreSQL) and system dashboard UI
This commit is contained in:
@@ -1,4 +1,22 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:17
|
||||
container_name: dzentra_postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: dzentra_bot
|
||||
POSTGRES_USER: dzentra_bot
|
||||
POSTGRES_PASSWORD: change_me
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- dzentra_postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U dzentra_bot -d dzentra_bot"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
|
||||
bot:
|
||||
build:
|
||||
context: ../..
|
||||
@@ -7,3 +25,9 @@ services:
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- ../../app/.env
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
|
||||
volumes:
|
||||
dzentra_postgres_data:
|
||||
Reference in New Issue
Block a user