33 lines
732 B
YAML
33 lines
732 B
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: livevue_postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: livevue
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
- ./pg_hba.conf:/etc/postgresql/pg_hba.conf
|
|
command:
|
|
- postgres
|
|
- -c
|
|
- wal_level=logical
|
|
- -c
|
|
- max_replication_slots=10
|
|
- -c
|
|
- max_wal_senders=10
|
|
- -c
|
|
- hba_file=/etc/postgresql/pg_hba.conf
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres -d livevue"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
volumes:
|
|
postgres_data:
|
|
|