version: '3.8'

services:
  web:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "3800:3800"  # Changed to port 3800 to match external Nginx config
    environment:
      - NODE_ENV=production
    restart: unless-stopped
    # Mount these as volumes to enable hot updating without rebuilding the container
    volumes:
      - ./nginx.conf:/etc/nginx/conf.d/default.conf
      - ./.env:/usr/share/nginx/html/.env

  # Optional service for the app.js backend script
  # Uncomment and configure as needed
  # backend:
  #   build:
  #     context: .
  #     dockerfile: Dockerfile.backend
  #   environment:
  #     - NODE_ENV=production
  #     - WREN_API_TOKEN=${WREN_API_TOKEN}
  #   restart: unless-stopped
  #   depends_on:
  #     - web
