Spot the bug in the Compose file

from Docker
Docker CLI 29.7.2 / Compose 5.5.0 / Node 24 intermediate 4 min 4 issues to find

Find the connectivity and host-access problems in this generated Compose file.

YAML
services:
  api:
    image: catalog:local
    environment:
      DATABASE_URL: postgresql://catalog:local@localhost:5432/catalog
    volumes:
      - /:/host
    privileged: true
  db:
    image: postgres:18-alpine
    ports:
      - "0.0.0.0:5432:5432"
Open in playground
Report an error