version: '3.8'
services:
  billing-api:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: danstreak-billing-api
    restart: unless-stopped
    ports:
      - "7001:7001"
    env_file:
      - .env
    # Note: If your PostgreSQL database is running on localhost, 
    # Docker on Linux cannot easily reach it using 'localhost' in DATABASE_URL.
    # You will need to change 'localhost' in .env to 'host.docker.internal' 
    # or the actual IP address of the machine.
    extra_hosts:
      - "host.docker.internal:host-gateway"
