services: postgres: image: postgres:17-alpine container_name: crm-postgres restart: unless-stopped environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: crm ports: - "5432:5432" volumes: - crm-postgres:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres -d crm"] interval: 3s timeout: 5s retries: 20 volumes: crm-postgres: