Files
meshcore-hub/docker/.env.example
T
Claude caa67059a3 Add Docker setup with Compose profiles for Phase 6
- Add multi-stage Dockerfile with python:3.11-slim base
- Add docker-compose.yml with profile support for selective service deployment:
  - mqtt: Eclipse Mosquitto MQTT broker
  - interface-receiver: MeshCore device receiver mode
  - interface-sender: MeshCore device sender mode
  - collector: MQTT subscriber and database storage
  - api: REST API server
  - web: Web dashboard
  - mock: Testing profile with mock devices
  - migrate: Database migration service
- Add mosquitto.conf with listener and persistence configuration
- Add .dockerignore for faster builds
- Add .env.example for Docker environment configuration
- Add sample members.json for web dashboard
2025-12-03 15:26:05 +00:00

67 lines
1.3 KiB
Bash

# MeshCore Hub - Docker Compose Environment Configuration
# Copy this file to .env and customize values
# ===================
# Common Settings
# ===================
# Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
LOG_LEVEL=INFO
# MQTT Broker Settings (internal use)
MQTT_USERNAME=
MQTT_PASSWORD=
MQTT_PREFIX=meshcore
# External MQTT port mapping
MQTT_EXTERNAL_PORT=1883
MQTT_WS_PORT=9001
# ===================
# Interface Settings
# ===================
# Serial port for receiver device
SERIAL_PORT=/dev/ttyUSB0
# Serial port for sender device (if separate)
SERIAL_PORT_SENDER=/dev/ttyUSB1
# Baud rate for serial communication
SERIAL_BAUD=115200
# Optional node address override (64-char hex string)
NODE_ADDRESS=
NODE_ADDRESS_SENDER=
# ===================
# API Settings
# ===================
# External API port
API_PORT=8000
# API Keys for authentication (generate secure keys for production!)
# Example: openssl rand -hex 32
API_READ_KEY=
API_ADMIN_KEY=
# ===================
# Web Dashboard Settings
# ===================
# External web port
WEB_PORT=8080
# Network Information (displayed on web dashboard)
NETWORK_NAME=MeshCore Network
NETWORK_CITY=
NETWORK_COUNTRY=
NETWORK_LOCATION=
NETWORK_RADIO_CONFIG=
NETWORK_CONTACT_EMAIL=
NETWORK_CONTACT_DISCORD=
# Path to members JSON file (mounted into container)
MEMBERS_FILE_PATH=./members.json