version: "3.9" services: stella-postgres: image: postgres:17 container_name: stella-postgres restart: unless-stopped environment: POSTGRES_USER: stella POSTGRES_PASSWORD: stella POSTGRES_DB: stella ports: - "5432:5432" volumes: - stella-postgres-data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER"] interval: 10s timeout: 5s retries: 5 volumes: stella-postgres-data: driver: local