This guide covers production deployment strategies for DGG-PM, including Docker Compose and automated deployments via Coolify.
develop: Active development and integration branch. All features, PRs, and daily changes land here.main: Production-ready branch tracked by Coolify or CI/CD for automated builds.- Promoting to Production:
(Or open and merge a Pull Request from
# Fast-forward main to current develop git push origin develop:maindevelopintomainon GitHub).
DGG-PM is pre-configured for turnkey hosting on Coolify.
- In your Coolify project dashboard, click Add Resource ➔ Docker Compose.
- Connect your Git repository and set the branch to
main. - Configure the required environment variables in Coolify:
DISCORD_BOT_TOKEN: Your Discord bot token.DISCORD_CLIENT_ID: Your Discord application client ID.DISCORD_GUILD_ID: (Optional) Guild ID for instant slash command registration.
- Click Deploy.
- Migrations run automatically on startup (
AUTO_RUN_MIGRATIONS=true). - The container healthcheck actively monitors
/healthz.
- Migrations run automatically on startup (
- Provision a PostgreSQL 16+ database resource in Coolify.
- Create a new Application pointing to this repository (Build Pack: Dockerfile, Branch:
main). - Configure the following environment variables:
DATABASE_URL: PostgreSQL connection string (standardpostgres://andpostgresql://URIs are automatically normalized to asyncpg).AUTO_RUN_MIGRATIONS:trueDISCORD_BOT_TOKEN: Your Discord bot token.DISCORD_CLIENT_ID: Your Discord application ID.DISCORD_GUILD_ID: (Optional)
- In Coolify Application Settings, set:
- Port:
8000 - Health Check Path:
/healthz
- Port:
For running directly on a Linux VPS or self-hosted server using Docker Compose:
-
Clone the repository and configure your environment:
cp .env.example .env # Edit .env with your DISCORD_BOT_TOKEN and credentials -
Build and launch containers:
docker compose up -d --build
-
View live application logs:
docker compose logs -f app
-
Stop services:
docker compose down