services:
postgres:
image: postgres:16-alpine
ports:
- "54320:5432"
environment:
POSTGRES_USER: testuser
POSTGRES_PASSWORD: testpass
POSTGRES_DB: testdb
POSTGRES_HOST_AUTH_METHOD: md5
POSTGRES_INITDB_ARGS: "--auth-host=md5 --auth-local=md5"
healthcheck:
test:
interval: 5s
timeout: 5s
retries: 10
tmpfs:
- /var/lib/postgresql/data