services:
  void-sentinel:
    build: .
    environment:
      - RUST_LOG
      - API_KEY
      - DISCORD_TOKEN
      - SURREAL_ADDRESS
      - SURREAL_USER
      - SURREAL_PASS
      - SURREAL_NS
      - SURREAL_DB
      - NVIDIA_API_KEY
      - OLLAMA_SERVER_URL
      - OLLAMA_MODEL
      - AI_CHAT_COOLDOWN_MS
      - BOT_OWNER_ID
      - IGNORE_RUDE
      - API_PORT=8080
    restart: unless-stopped

  web:
    build: ./web
    ports:
      - "3000:3000"
    environment:
      - AUTH_SECRET
      - AUTH_DISCORD_ID
      - AUTH_DISCORD_SECRET
      - BOT_API_KEY
      - APP_URL
      - BOT_API_URL=http://void-sentinel:8080
      - NODE_ENV=production
    depends_on:
      - void-sentinel
    restart: unless-stopped
