From fbbad21f9c88bd4c09e4d564e70d122cc74bcca5 Mon Sep 17 00:00:00 2001
From: Simon <simon@gb7fr.org.uk>
Date: Sun, 5 Sep 2021 02:36:19 +0100
Subject: [PATCH] Add docker-compose.yml

---
 docker-compose.yml | 53 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 docker-compose.yml

diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..e1f8ade
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,53 @@
+#Dockerised IPSC <--> HomeBrew Protocol stack. 
+#
+#For connecting Motorola repeaters to FreeDMR
+#NB: If you get strange audio problems, try only 
+#enabling one timelot. This is a known issue 
+#with the current tools. 
+
+version: '3.3'
+services:
+    #Duplicate this section for each repeater
+    #do docker-compose down and then docker-compose up -d in this 
+    #directory afterwards to stop and start the containers 
+    #you may need to do conntrack -F after the restart
+    FreeDMR-IPSC:
+        container_name: FreeDMR-IPSC
+        ports:
+          #IPSC port - left side always stays the same (inside container), right side is 
+          #the port you want to present on the outside.
+          #This is automatically mapped - docker uses iptables to do this
+          - '55000:55000/udp'
+        environment:
+          #Configure IPSC side (IPSC_Bridge)
+          #True if we are the master
+          #False if we are connecting to an existing IPSC network
+          - IPSC_MASTER_PEER=True
+          #IP and Port only needed if the above is False
+          - IPSC_MASTER_IP=
+          - IPSC_MASTER_PORT=
+          #Which timeslots to forward
+          - IPSC_TS1=False
+          - IPSC_TS2=True
+          #DMR ID we use to talk to the IPSC network
+          #This should probably be the repeater server's SERVER_ID
+          - IPSC_RADIO_ID=2341
+          #Configure HBP (repeater) details (HB_Bridge)
+          - HB_CALLSIGN=
+          - HB_RADIO_ID=
+          - HB_RX_FREQ=
+          - HB_TX_FREQ=
+          - HB_TX_POWER=
+          - HB_COLORCODE=
+          - 'HB_LAT='
+          - 'HB_LON=-'
+          - HB_HEIGHT=
+          - HB_LOCATION=
+          #Put an Options line here to configure static TGs etc
+          - HB_OPTIONS=
+          #Configure Repeater server side (DMRGateway)
+          #Target server
+          - DMRG_TARGET=
+        image: 'hacknix/freedmr:FreeDMR-IPSC'
+        #Container will persist over reboots
+        restart: "unless-stopped"