forked from shajen/rtl-sdr-scanner-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (65 loc) · 2.17 KB
/
docker-compose.yml
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
56
57
58
59
60
61
62
63
64
65
services:
sdr-broker:
image: eclipse-mosquitto:latest
restart: on-failure
command:
- /bin/sh
- -c
- |
echo "listener 1883" > /mosquitto/config/mosquitto.conf
echo "allow_anonymous false" >> /mosquitto/config/mosquitto.conf
echo "password_file /mosquitto/config/password.txt" >> /mosquitto/config/mosquitto.conf
echo "admin:password" > /mosquitto/config/password.txt
mosquitto_passwd -U /mosquitto/config/password.txt
mosquitto -c /mosquitto/config/mosquitto.conf
sdr-scanner:
image: shajen/sdr-scanner:latest
restart: on-failure
depends_on:
- sdr-broker
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./config.json:/config.json
devices:
- /dev/bus/usb:/dev/bus/usb
sdr-monitor-setup:
image: shajen/sdr-monitor:latest
restart: on-failure
depends_on:
- sdr-broker
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- monitor_db:/usr/src/sdr-panel/db
- monitor_data:/usr/src/sdr-panel/public/media
command: bash -c "python3 manage.py migrate && DJANGO_SUPERUSER_PASSWORD=password python3 manage.py createsuperuser --noinput --username admin --email [email protected] &> /dev/null || true"
sdr-monitor-server:
image: shajen/sdr-monitor:latest
restart: on-failure
depends_on:
sdr-monitor-setup:
condition: service_completed_successfully
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- monitor_db:/usr/src/sdr-panel/db
- monitor_data:/usr/src/sdr-panel/public/media
command: python3 manage.py runserver 0.0.0.0:8000
ports:
- 8000:8000
sdr-monitor-reader:
image: shajen/sdr-monitor:latest
restart: on-failure
depends_on:
sdr-monitor-setup:
condition: service_completed_successfully
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- monitor_db:/usr/src/sdr-panel/db
- monitor_data:/usr/src/sdr-panel/public/media
command: python3 manage.py runscript mqtt_reader
volumes:
monitor_db:
monitor_data: