services: postgres: image: postgres:15-alpine container_name: cmdb-postgres-dev environment: POSTGRES_DB: cmdb_cache POSTGRES_USER: cmdb POSTGRES_PASSWORD: cmdb-dev ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U cmdb"] interval: 10s timeout: 5s retries: 5 restart: unless-stopped volumes: postgres_data: