-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (42 loc) · 1.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (42 loc) · 1.1 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
version: '3.8'
services:
theme-sender:
image: ghcr.io/YOUR_USERNAME/theme-sender:latest
container_name: theme-sender
restart: unless-stopped
environment:
# MQTT Configuration
MQTT_HOST: tcp://mqtt-broker:1883
MQTT_USERNAME: ${MQTT_USERNAME:-}
MQTT_PASSWORD: ${MQTT_PASSWORD:-}
MQTT_TOPIC: neiam/sync/theme
MQTT_OVERRIDE_TOPIC: neiam/sync/theme/override
MQTT_REVERT_TOPIC: neiam/sync/theme/revert
# Publishing interval (seconds)
PUBLISH_INTERVAL_SECS: 300
# Logging
RUST_LOG: info
networks:
- mqtt-network
depends_on:
- mqtt-broker
# Example MQTT broker (mosquitto)
mqtt-broker:
image: eclipse-mosquitto:2
container_name: mqtt-broker
restart: unless-stopped
ports:
- "1883:1883"
- "9001:9001"
volumes:
- mosquitto-data:/mosquitto/data
- mosquitto-logs:/mosquitto/log
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
networks:
- mqtt-network
networks:
mqtt-network:
driver: bridge
volumes:
mosquitto-data:
mosquitto-logs: