# Add this service to your existing docker-compose.yml
services:
  api:
    build: ./backend
    env_file:
      - ./backend/.env
    ports:
      - "4000:4000"
    depends_on:
      - db

  # Example db service (if you don't already have one)
  db:
    image: postgres:15
    environment:
      POSTGRES_DB: supersunday
      POSTGRES_USER: supersunday
      POSTGRES_PASSWORD: supersunday
    volumes:
      - pgdata:/var/lib/postgresql/data
    ports:
      - "5432:5432"

volumes:
  pgdata:
