$ curl -fsSL get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh- (Debian Buster)
$ sudo apt install docker-compose- (Debian stretch)
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ chmod +x /usr/local/bin/docker-compose- (Raspberry Buster)
$ sudo apt install docker-compose- (Raspberry stretch)
$ sudo apt-get -y install python-setuptools
$ sudo easy_install pip && sudo pip install docker-compose$ git clone https://github.com/f4hlv/mmdvm-docker.git
$ cd mmdvm-dockerEdit docker-compose.yml and run
$ docker network create webgateway
$ docker-compose up -d/MMDVMHost/MMDVM.ini:roPath to the MMDVM.ini File/MMDVMHost/RSSI.dat:roPath to the RSSI.dat File (Optional)/MMDVMHost/DMRIds.dat:roPath to the DMRIds.dat File (Optional)/YSFClients/YSFGateway/YSFHosts.txt:roPath to the YSFHosts.txt File (Optional)
example for MMDVM.ini(raspberry): /home/pi/MMDVM.ini:/MMDVMHost/MMDVM.ini:ro
Configure options and destination directories /etc/mmdvm and /etc/YSFGateway. Then delete the setup.php file
80:80Port configuration. "Port host":80(container port)
$ docker exec mmdvm-dashboard rm /var/www/html/setup.php$ docker-compose build --no-cache
$ docker-compose up -dversion: '3.2'
services:
#############################################################################################
mmdvmhost:
build:
context: .
dockerfile: Dockerfile.mmdvmhost
container_name: mmdvmhost
volumes:
- ./config/MMDVM.ini:/MMDVMHost/MMDVM.ini:ro
# - ./config/RSSI.dat:/MMDVMHost/RSSI.dat:ro
# - ./config/DMRIds.dat:/MMDVMHost/DMRIds.dat:ro
- mmdvmhost:/MMDVMHost
- log-mmdvm:/var/log/mmdvm
networks:
mmdvm:
ipv4_address: 10.10.1.2
devices:
- /dev/ttyACM0:/dev/ttyACM0
restart: unless-stopped
#############################################################################################
ysfgateway:
build:
context: .
dockerfile: Dockerfile.ysfgateway
container_name: ysfgateway
restart: unless-stopped
volumes:
- ./config/YSFGateway.ini:/YSFClients/YSFGateway/YSFGateway.ini:ro
# - ./config/YSFHosts.txt:/YSFClients/YSFGateway/YSFHosts.txt:ro
- log-YSFGateway:/var/log/YSFGateway
depends_on:
- mmdvmhost
networks:
mmdvm:
ipv4_address: 10.10.1.3
#############################################################################################
ysf2dmr:
build:
context: .
dockerfile: Dockerfile.ysf2dmr
container_name: ysf2dmr
volumes:
- ./config/YSF2DMR.ini:/MMDVM_CM/YSF2DMR/YSF2DMR.ini:ro
# - ./config/TGList-DMR.txt:/MMDVM_CM/YSF2DMR/TGList-DMR.txt:ro
depends_on:
- ysfgateway
networks:
mmdvm:
ipv4_address: 10.10.1.30
restart: unless-stopped
#############################################################################################
mmdvm-dashboard:
build:
context: .
dockerfile: Dockerfile.mmdvmdashboard
container_name: mmdvm-dashboard
restart: always
ports:
- "80:80"
volumes:
- mmdvmhost:/MMDVMHost:ro
- ./config:/config:ro
- ./config/config.php:/var/www/html/config/config.php
- log-mmdvm:/var/log/mmdvm:ro
- log-YSFGateway:/var/log/YSFGateway:ro
pid: host
restart: always
networks:
- webgateway
#############################################################################################
volumes:
mmdvmhost:
log-mmdvm:
log-YSFGateway:
networks:
webgateway:
external:
name: webgateway
mmdvm:
ipam:
driver: default
config:
- subnet: 10.10.1.0/24This software is licenced under the GPL v2 and is intended for amateur and educational use only. Use of this software for commercial purposes is strictly forbidden.