-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (50 loc) · 2.03 KB
/
docker-compose.yml
File metadata and controls
55 lines (50 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '3.8'
services:
malla-web:
# Use pre-built image by default, override with 'build: .' for development
image: ${MALLA_IMAGE:-ghcr.io/zenitram/malla:latest}
# Uncomment the following line for local development:
# build: .
# Choose between Flask dev server and Gunicorn
# Default: Flask development server (malla-web)
# Production: Gunicorn WSGI server (malla-web-gunicorn)
command: ${MALLA_WEB_COMMAND:-/app/.venv/bin/malla-web}
ports:
- "${MALLA_WEB_PORT:-5008}:5008"
environment:
- MALLA_HOST=0.0.0.0
- MALLA_PORT=5008
- MALLA_DATABASE_FILE=/app/data/meshtastic_history.db
- MALLA_NAME=${MALLA_NAME:-Malla}
- MALLA_SECRET_KEY=${MALLA_SECRET_KEY:-dev-secret-key-change-in-production}
- MALLA_DEBUG=${MALLA_DEBUG:-false}
volumes:
- malla_data:/app/data
# Optional: mount your own config file (uncomment if you have one)
# - ./config.yaml:/app/config.yaml:ro
restart: unless-stopped
depends_on:
- malla-capture
malla-capture:
# Use pre-built image by default, override with 'build: .' for development
image: ${MALLA_IMAGE:-ghcr.io/zenitram/malla:latest}
# Uncomment the following line for local development:
# build: .
command: ["/app/.venv/bin/malla-capture"]
environment:
- MALLA_DATABASE_FILE=/app/data/meshtastic_history.db
# MQTT Configuration - set these in your .env file
- MALLA_MQTT_BROKER_ADDRESS=${MALLA_MQTT_BROKER_ADDRESS}
- MALLA_MQTT_PORT=${MALLA_MQTT_PORT:-1883}
- MALLA_MQTT_USERNAME=${MALLA_MQTT_USERNAME:-}
- MALLA_MQTT_PASSWORD=${MALLA_MQTT_PASSWORD:-}
- MALLA_MQTT_TOPIC_PREFIX=${MALLA_MQTT_TOPIC_PREFIX:-msh}
- MALLA_MQTT_TOPIC_SUFFIX=${MALLA_MQTT_TOPIC_SUFFIX:-/+/+/+/#}
- MALLA_DEFAULT_CHANNEL_KEY=${MALLA_DEFAULT_CHANNEL_KEY:-}
volumes:
- malla_data:/app/data
# Optional: mount your own config file (uncomment if you have one)
# - ./config.yaml:/app/config.yaml:ro
restart: unless-stopped
volumes:
malla_data: