21 lines
459 B
YAML
21 lines
459 B
YAML
services:
|
|
postgres:
|
|
image: postgres:17-alpine
|
|
container_name: asentrafin-postgres
|
|
environment:
|
|
POSTGRES_DB: asentrafin
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres -d asentrafin"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
postgres-data:
|