Use Docker-conpose in install script.

include docker-compose.yml
This commit is contained in:
Simon 2021-06-03 02:25:51 +01:00
parent 3385b89bce
commit d2e9f54c15
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,14 @@
version: '3.3'
services:
freedmr:
container_name: freedmr
volumes:
- '/etc/freedmr/freedmr.cfg:/opt/freedmr/freedmr.cfg'
- '/var/log/freedmr/freedmr.log:/opt/freedmr/freedmr.log'
- '/etc/freedmr/rules.py:/opt/freedmr/rules.py'
ports:
- '62031:62031/udp'
- '62045-62049:62045-62049/udp'
- '5900:5900/udp'
- '4321:4321/tcp'
image: 'hacknix/freedmr:development-latest'

View File

@ -4,6 +4,7 @@ echo FreeDMR Docker installer...
echo Installing required packages...
apt-get install docker.io &&
apt-get install docker-compose &&
apt-get install conntrack &&
echo Set userland-proxy to false...
@ -55,6 +56,7 @@ SUBSCRIBER_FILE: subscriber_ids.json
TGID_FILE: talkgroup_ids.json
PEER_URL: https://www.radioid.net/static/rptrs.json
SUBSCRIBER_URL: https://www.radioid.net/static/users.json
TGID_URL: TGID_URL: http://downloads.freedmr.uk/downloads/talkgroup_ids.json
STALE_DAYS: 7
[MYSQL]