Skip to content

Deployment ​

Deployed Environments ​

EnvironmentBase URL
Productionhttps://cometpayments.mamlakapsp.com
Local devhttp://localhost:8100

Production is running an older build

As of this writing, https://cometpayments.mamlakapsp.com shares the same database as local dev but is running a build from before this session's admin-user RBAC, IMM vault (fund/balance/rebalance), and Treasury corridor engine:

  • /admin/corridor/*, /admin/imm/vault*, /admin/imm/rebalance, and /auth/admin-login all 404 — not deployed yet.
  • POST /imm/swap still works, but returns the old response shape (burnTxHash/mintTxHash, pure burn-then-mint) — not the vault-aware baseTxHash/quoteTxHash/vaultBacked shape documented on the IMM & Treasury page. Don't build an integration against vaultBacked until this is redeployed — it won't be in the response.
  • Everything else — wallets, dynamic assets, both AMMs, tokenization, receipts, journal, tenant admin, token factory — is live and confirmed working as documented.

Set the <ApiConfig /> base URL on the IMM & Treasury page to http://localhost:8100 for anything past Part 1 Step 2, or confirm with your deployment owner that production is current before pointing integration tests at it.

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.