account/docker-compose.yml
GnomeZworc 599479d746
init socle
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2026-06-13 11:47:13 +02:00

19 lines
457 B
YAML

services:
db:
image: timescale/timescaledb:latest-pg16
environment:
POSTGRES_DB: ${DB_NAME:-account}
POSTGRES_USER: ${DB_USER:-account}
POSTGRES_PASSWORD: ${DB_PASSWORD:-account}
ports:
- "${DB_PORT:-5432}:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-account}"]
interval: 5s
timeout: 5s
retries: 5
volumes:
pgdata: