services: history-db: image: postgres:16 container_name: ea-history-db restart: unless-stopped environment: POSTGRES_DB: ${HISTORY_DB_NAME:-ea_history} POSTGRES_USER: ${HISTORY_DB_USER:-user} POSTGRES_PASSWORD: ${HISTORY_DB_PSWD:-password} ports: - "5433:5432" volumes: - ./postgres-data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] interval: 10s timeout: 5s retries: 5