Deployment¶
This project deploys the API with Docker Compose. The exact deployment workflow (CI/CD, SSH, etc.) depends on your environment.
Production compose¶
The production compose file defines these services:
genjishimada-apigenjishimada-botgenjishimada-db
Start them with:
Environment variables¶
Create a production .env with the values required by the API and bot:
QUEUE_DATABASE_URL=postgresql://genjishimada_queue_worker:REPLACE_WITH_SECRET@genjishimada-db:5432/genjishimada
QUEUE_OPERATOR_IDS=141372217677053952
APP_ENVIRONMENT=production
POSTGRES_USER=genjishimada
POSTGRES_PASSWORD=your_password
POSTGRES_DB=genjishimada
API_KEY=your_api_key_for_bot
Add any optional values (Sentry, R2, Resend) as needed.
Health checks¶
The API service includes a health check at /healthcheck. Within Docker, this runs on http://localhost:8000/healthcheck inside the container. Expose it through your reverse proxy if you need external access.
Logs¶
Notes¶
Postgres is attached to the external genji-network. Ensure that network exists in your environment.