chore: Update configuration and documentation for Docker setup

- Added new configuration options in config.ini.example for monitoring channels, direct message responses, and banned users.
- Updated docker-setup.sh to clarify build and start commands for Docker containers, including options to avoid pull warnings.
- Revised README and DOCKER.md to reflect changes in Docker commands, emphasizing the importance of building the image before starting the container.
This commit is contained in:
agessaman
2026-01-17 09:40:16 -08:00
parent 21b46e9ee6
commit e18b96f3df
5 changed files with 48 additions and 22 deletions
+14 -2
View File
@@ -126,11 +126,23 @@ port = 8080
### Using Docker Compose
The `docker-compose.yml` file will automatically build the image if it doesn't exist:
**Important**: To avoid pull warnings, build the image first:
```bash
docker-compose build
docker compose build
```
Then start the container:
```bash
docker compose up -d
```
Or build and start in one command:
```bash
docker compose up -d --build
```
The `--build` flag ensures the image is built locally rather than attempting to pull from a registry.
### Using Docker directly
```bash
+8 -2
View File
@@ -103,9 +103,15 @@ For containerized deployment using Docker:
log_file = /data/logs/meshcore_bot.log
```
3. **Start with Docker Compose**:
3. **Build and start with Docker Compose**:
```bash
docker-compose up -d
docker compose build
docker compose up -d
```
Or build and start in one command:
```bash
docker compose up -d --build
```
4. **View logs**:
+16 -16
View File
@@ -112,6 +112,22 @@ auto_manage_contacts = false
# Default: meshcore_bot.db
db_path = meshcore_bot.db
[Channels]
# Channels to monitor (comma-separated)
# Bot will only respond to messages on these channels
# Use exact channel names as configured on your MeshCore node
monitor_channels = general,test,emergency
# Enable DM responses
# true: Bot will respond to direct messages
# false: Bot will ignore direct messages
respond_to_dms = true
[Banned_Users]
# List of banned user IDs (comma-separated)
# Bot will ignore messages from these users
banned_users =
[Localization]
# Language code for bot responses (en, es, es-MX, es-ES, fr, de, ja, etc.)
# Default: en (English)
@@ -276,22 +292,6 @@ help = "Bot Help: test (or t), ping, help, hello, cmd, advert, @string, wx, aqi,
# Override 'cmd' command output
# cmd = "Available commands: test (or t), ping, help, hello, cmd, advert, @string, wx, aqi, sun, moon, solar, hfcond, satpass, prefix, path, sports, dice, roll, stats"
[Channels]
# Channels to monitor (comma-separated)
# Bot will only respond to messages on these channels
# Use exact channel names as configured on your MeshCore node
monitor_channels = general,test,emergency
# Enable DM responses
# true: Bot will respond to direct messages
# false: Bot will ignore direct messages
respond_to_dms = true
[Banned_Users]
# List of banned user IDs (comma-separated)
# Bot will ignore messages from these users
banned_users =
[Scheduled_Messages]
# Scheduled message format: HHMM = channel:message
# Time format: HHMM (24-hour, no colon)
+2
View File
@@ -5,6 +5,8 @@ services:
build:
context: .
dockerfile: Dockerfile
# Image will be built locally (not pulled from registry)
# To avoid pull warnings, run: docker compose build
image: meshcore-bot:latest
container_name: meshcore-bot
restart: unless-stopped
+8 -2
View File
@@ -199,8 +199,14 @@ if [ -z "$SERIAL_DEVICE" ]; then
echo "1. Connect your MeshCore device or configure TCP/BLE connection"
fi
echo "1. Review data/config/config.ini and adjust settings if needed"
echo "2. Start the container:"
echo "2. Build the Docker image (to avoid pull warnings):"
echo " docker compose build"
echo ""
echo "3. Start the container:"
echo " docker compose up -d"
echo ""
echo "3. View logs:"
echo " Or build and start in one command:"
echo " docker compose up -d --build"
echo ""
echo "4. View logs:"
echo " docker compose logs -f"