... | ... | @@ -48,52 +48,9 @@ place the freedmr.cfg file in this directory. |
|
|
|
|
|
`chmod 755 /etc/freedmr -R`
|
|
|
|
|
|
## create /etc/freedmr/docker-compose.yml with the following content
|
|
|
## create /etc/freedmr/docker-compose.yml
|
|
|
|
|
|
```
|
|
|
version: '2.4'
|
|
|
services:
|
|
|
freedmr:
|
|
|
container_name: freedmr
|
|
|
cpu_shares: 1024
|
|
|
mem_reservation: 600m
|
|
|
volumes:
|
|
|
- '/etc/freedmr/freedmr.cfg:/opt/freedmr/freedmr.cfg'
|
|
|
- '/etc/freedmr/rules.py:/opt/freedmr/rules.py'
|
|
|
#Write JSON files outside of container
|
|
|
- '/etc/freedmr/json/:/opt/freedmr/json/'
|
|
|
|
|
|
ports:
|
|
|
- '62031:62031/udp'
|
|
|
#Change the below to inlude ports used for your OBP(s)
|
|
|
#- '62041:62041/udp'
|
|
|
image: 'gitlab.hacknix.net:5050/hacknix/freedmr:development-latest'
|
|
|
restart: "unless-stopped"
|
|
|
networks:
|
|
|
app_net:
|
|
|
ipv4_address: 172.16.238.10
|
|
|
#Control parameters inside container
|
|
|
environment:
|
|
|
#IPV6 support
|
|
|
- FDPROXY_IPV6=0
|
|
|
#Display connection stats in log
|
|
|
- FDPROXY_STATS=1
|
|
|
#Display conneting client info in log
|
|
|
- FDPROXY_CLIENTINFO=1
|
|
|
#Debug HBP session in log (lots of data!!)
|
|
|
- FDPROXY_DEBUG=0
|
|
|
#Override proxy external port
|
|
|
#- FDPROXY_LISTENPORT=62031
|
|
|
read_only: "true"
|
|
|
networks:
|
|
|
app_net:
|
|
|
driver: bridge
|
|
|
ipam:
|
|
|
driver: default
|
|
|
config:
|
|
|
- subnet: 172.16.238.0/24
|
|
|
gateway: 172.16.238.1
|
|
|
```
|
|
|
Download the file here: [docker-compose.yml](https://gitlab.hacknix.net/hacknix/FreeDMR/-/raw/master/docker-configs/docker-compose.yml)
|
|
|
|
|
|
\#Add network tuning
|
|
|
|
... | ... | |