fix: Add config.yml support for Docker deployment
Mount config.yml into Docker container and provide example template. Changes: - Mount config.yml as read-only volume in docker-compose.yml - Create config.example.yml template for users - Add config.yml to .gitignore (contains sensitive settings) - Update README.md with config file setup instructions Fixes 'Config file not found' error in Docker deployment. Users should: 1. Copy config.example.yml to config.yml 2. Edit config.yml with their settings 3. Run docker compose up -d
This commit is contained in:
16
README.md
16
README.md
@@ -60,10 +60,15 @@ A lightweight, cost-conscious Discord moderation bot focused on essential protec
|
||||
cd guardden
|
||||
```
|
||||
|
||||
2. Create your environment file:
|
||||
2. Create your configuration files:
|
||||
```bash
|
||||
# Environment variables
|
||||
cp .env.example .env
|
||||
# Edit .env and add your Discord token
|
||||
|
||||
# Bot configuration
|
||||
cp config.example.yml config.yml
|
||||
# Edit config.yml with your settings
|
||||
```
|
||||
|
||||
3. Start with Docker Compose:
|
||||
@@ -84,10 +89,15 @@ A lightweight, cost-conscious Discord moderation bot focused on essential protec
|
||||
pip install -e ".[dev,ai]"
|
||||
```
|
||||
|
||||
3. Set up environment variables:
|
||||
3. Set up configuration:
|
||||
```bash
|
||||
# Environment variables
|
||||
cp .env.example .env
|
||||
# Edit .env with your configuration
|
||||
# Edit .env with your Discord token
|
||||
|
||||
# Bot configuration
|
||||
cp config.example.yml config.yml
|
||||
# Edit config.yml with your settings
|
||||
```
|
||||
|
||||
4. Start PostgreSQL (or use Docker):
|
||||
|
||||
Reference in New Issue
Block a user