跳至内容

ADN+ (FreeDMR plug docker) not show logs problem

Edit the docker config file /etc/ADN-Systems/docker-compose.yml

version: '2.4'
services:

    adn-server:
        container_name: adn-server
        cpu_shares: 1024
        mem_reservation: 600m
        volumes:
            - '/etc/ADN-Systems/adn.cfg:/opt/ADN-DMR-Peer-Server/config/adn.cfg'
            - '/etc/ADN-Systems/json/:/opt/ADN-DMR-Peer-Server/json/'
            - '/var/log/ADN-Systems/:/opt/ADN-DMR-Peer-Server/log/'
        ports:
            #Change the below to inlude ports used for your OBP(s)
            - '62041:62041/udp'
        image: 'registry.gitlab.com/hp3icc/fdmr/adn-server-self-service:latest'
        restart: "unless-stopped"
        logging:
          #driver: none
driver: json-file
        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

Disable DEBUG log avoid the huge log files.

vi /etc/ADN-Systems/

[LOGGER]
LOG_FILE: /dev/null
LOG_HANDLERS: console-timed
#LOG_LEVEL: DEBUG
LOG_LEVEL: INFO
LOG_NAME: FreeDMR


More help: 

https://www.facebook.com/groups/v3f446

https://www.facebook.com/winters.cn/