services: db: image: postgres:16-alpine container_name: clinic_postgres restart: unless-stopped environment: POSTGRES_DB: clinic_db POSTGRES_USER: clinic_user POSTGRES_PASSWORD: clinic_password ports: - "5432:5432" volumes: - pgdata:/var/lib/postgresql/data - ./init.sql:/docker-entrypoint-initdb.d/init.sql volumes: pgdata: