# Generic Docker Compose configuration for Next.js applications
# This is a template file - customize as needed for your specific requirements

services:
  app:
    image: node:24-alpine
    working_dir: /app
    command: sh -c "npm install && npm run dev"
    ports:
      - '3000:3000'
    env_file:
      - .env
    environment:
      # Generic environment variables - customize based on your needs
      NEXT_PUBLIC_APP_URL: ${NEXT_PUBLIC_APP_URL}
      NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL}
      NEXT_PUBLIC_GA_ID: ${NEXT_PUBLIC_GA_ID}
      # Add your specific environment variables here
    volumes:
      - .:/app
      - /app/node_modules
