version: "3.9" services: postgres: image: postgres:16-alpine container_name: calminer_postgres_local restart: unless-stopped environment: POSTGRES_DB: calminer_local POSTGRES_USER: calminer POSTGRES_PASSWORD: secret ports: - "5433:5432" healthcheck: test: ["CMD-SHELL", "pg_isready -U calminer -d calminer_local"] interval: 10s timeout: 5s retries: 10 volumes: - postgres_data:/var/lib/postgresql/data volumes: postgres_data: