mkdir ccbot-config
cd ccbot-configversion: '3.8'
services:
ccbot:
image: ghcr.io/chesire/ccbot:latest
container_name: ccbot
volumes:
- ./config.json:/app/config.json:ro
- ./data:/app/data
restart: unless-stopped{
"token": "YOUR_BOT_TOKEN",
"clientId": "YOUR_CLIENT_ID",
"guildId": "YOUR_GUILD_ID"
}Get these values from the Discord Developer Portal:
- token: Bot token from the "Token" section
- clientId: Application ID from the "General Information" section
- guildId: Your Discord server ID (right-click server → Copy Server ID)
docker-compose up -ddocker-compose logs -f ccbotdocker-compose downccbot-config/
├── docker-compose.yml
├── config.json
└── data/ # Created automatically, contains sqlite databases
├── admindb.sqlite
├── challengedb.sqlite
├── shameeventsdb.sqlite
└── wrappeddb.sqlite
- The
data/directory is created automatically and persists your databases - Only
config.jsonneeds to exist; databases are created by the bot on first run - The
config.jsonfile is mounted as read-only to prevent accidental modifications - Logs can be viewed with
docker-compose logs -f ccbot
If you have other services running in docker-compose, add the CCBot service to your existing docker-compose.yml:
ccbot:
image: ghcr.io/chesire/ccbot:latest
container_name: ccbot
volumes:
- ./ccbot.config.json:/app/config.json:ro
- ./ccbot-data:/app/data
restart: unless-stoppedThen create ccbot.config.json in the same directory as your docker-compose.yml with your bot credentials.