Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

MMDVM by G4KLX

logo

Install Docker

$ curl -fsSL get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh

Install docker-compose

  • (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

Run MMDVMHost, YSFGateway and MMDVM-Dashboard

$ git clone https://github.com/f4hlv/mmdvm-docker.git
$ cd mmdvm-docker

Edit docker-compose.yml and run

$ docker network create webgateway
$ docker-compose up -d

Volume

  • /MMDVMHost/MMDVM.ini:ro Path to the MMDVM.ini File
  • /MMDVMHost/RSSI.dat:ro Path to the RSSI.dat File (Optional)
  • /MMDVMHost/DMRIds.dat:ro Path to the DMRIds.dat File (Optional)
  • /YSFClients/YSFGateway/YSFHosts.txt:ro Path to the YSFHosts.txt File (Optional)

example for MMDVM.ini(raspberry): /home/pi/MMDVM.ini:/MMDVMHost/MMDVM.ini:ro

Dashboard

Configure options and destination directories /etc/mmdvm and /etc/YSFGateway. Then delete the setup.php file

Port

  • 80:80 Port configuration. "Port host":80(container port)

Remove setup.php

$ docker exec mmdvm-dashboard rm /var/www/html/setup.php

Update

$ docker-compose build --no-cache
$ docker-compose up -d

docker-compose

version: '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/24

This 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.

About

Dockerized MMDVM Applications

Resources

Releases

No releases published

Packages

No packages published

Languages