volumes: db-data: name: db-data services: db: image: postgres:15.2-alpine env_file: .env ports: - 5432:5432 volumes: - ./db-data:/var/lib/postgres/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 10