services: botfights: build: . container_name: botfights restart: unless-stopped ports: - "9100:9100" volumes: - botfights-data:/app/server/data environment: - NODE_ENV=production - PORT=9100 # Queue: how long (ms) before falling back to mock bot (default 30s in prod) # - QUEUE_TIMEOUT_MS=30000 # CORS: set to your domain in prod, or leave for same-origin # - CORS_ORIGIN=https://botfights.example.com # Background fights: mock bots fight each other for site activity - FIGHT_LOOP_ENABLED=true # - FIGHT_LOOP_INTERVAL_MS=45000 # - FIGHT_LOOP_QUIET_START=2 # - FIGHT_LOOP_QUIET_END=8 volumes: botfights-data: