services: postgres: image: postgres:17-alpine environment: POSTGRES_DB: solaire POSTGRES_USER: solaire POSTGRES_PASSWORD: solaire ports: - "5432:5432" volumes: - solaire_postgres:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U solaire"] interval: 5s timeout: 3s retries: 10 volumes: solaire_postgres: