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: