

services:
  n8n:
    image: n8nio/n8n:latest   # pin version or use latest
    container_name: n8n
    restart: unless-stopped
    network_mode: "host"   # 👈 allows n8n to see host services like MySQL
    volumes:
      - n8n_data:/home/node/.n8n
    environment:
      - N8N_HOST=agents.wifimtaani.top
      - N8N_PORT=5678
      - N8N_PROTOCOL=https
      - WEBHOOK_URL=https://agents.wifimtaani.top
      - N8N_EDITOR_BASE_URL=https://agents.wifimtaani.top
      - N8N_TRUST_PROXY=true
      - N8N_SECURE_COOKIE=true
      - N8N_BASIC_AUTH_ACTIVE=true
      - N8N_BASIC_AUTH_USER=admin
      - N8N_BASIC_AUTH_PASSWORD=Osamawamajuu//62  # 🔒 update with strong password

      # 🔧 UltraMsg credentials
      - ULTRAMSG_INSTANCE_ID=your_instance_id
      - ULTRAMSG_API_TOKEN=your_api_token

volumes:
  n8n_data:

