Skip to content

Deployment

Docker

bash
docker build -t comet-engine .
docker run -d --name comet-engine -p 8100:8100 --env-file .env comet-engine

Docker Compose

yaml
version: "3.8"
services:
  comet-engine:
    build: .
    ports:
      - "8100:8100"
    env_file:
      - .env
    depends_on:
      - mongo
    restart: unless-stopped

  mongo:
    image: mongo:7
    ports:
      - "27017:27017"
    volumes:
      - mongo_data:/data/db

volumes:
  mongo_data:
bash
docker compose up -d

Production Checklist

  • [ ] WALLET_ENCRYPTION_KEY set and backed up securely
  • [ ] CELO_RELAYER_PRIVATE_KEY has sufficient CELO for gas
  • [ ] SERVICE_TOKENS set to a strong random value
  • [ ] MongoDB has auth enabled
  • [ ] Engine behind reverse proxy (not publicly exposed)
  • [ ] Health check (GET /health) monitored
  • [ ] Logs piped to centralized logging

Monitoring

bash
curl http://localhost:8100/health
json
{
  "status": "ok",
  "service": "comet-engine",
  "chains": ["celo"],
  "time": "2026-08-30T20:00:00Z"
}

Released under the MIT License.