services: db: image: postgres:16 ports: - "5432:5432" environment: POSTGRES_USER: "user" POSTGRES_PASSWORD: "password" POSTGRES_DB: "app_db" volumes: - postgres_data:/var/lib/postgresql/data volumes: postgres_data: