Skip to content

Commit

Permalink
Update docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
shajen committed Oct 29, 2023
1 parent bf5d37c commit 99c01b6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
BROKER_TAG=latest
SDR_SCANNER_TAG=latest
MONITOR_TAG=latest
TZ=Europe/London
Expand Down
15 changes: 14 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
services:
broker:
image: shajen/broker:${BROKER_TAG:-latest}
image: eclipse-mosquitto:latest
env_file: .env
restart: on-failure
ports:
- ${MQTT_PORT_TCP:-1883}:${MQTT_PORT_TCP:-1883}
- ${MQTT_PORT_WS:-9001}:${MQTT_PORT_WS:-9001}
command:
- /bin/sh
- -c
- |
echo "listener ${MQTT_PORT_TCP:-1883}" > /mosquitto/config/mosquitto.conf
echo "protocol mqtt" >> /mosquitto/config/mosquitto.conf
echo "listener ${MQTT_PORT_WS:-9001}" >> /mosquitto/config/mosquitto.conf
echo "protocol websockets" >> /mosquitto/config/mosquitto.conf
echo "allow_anonymous false" >> /mosquitto/config/mosquitto.conf
echo "password_file /mosquitto/config/password.txt" >> /mosquitto/config/mosquitto.conf
echo "${MQTT_USER:-admin}:${MQTT_PASSWORD:-password}" > /mosquitto/config/password.txt
mosquitto_passwd -U /mosquitto/config/password.txt
mosquitto -c /mosquitto/config/mosquitto.conf
sdr-scanner:
image: shajen/sdr-scanner:${SDR_SCANNER_TAG:-latest}
env_file: .env
Expand Down

0 comments on commit 99c01b6

Please sign in to comment.