Agent configuration is not persisted (traefik-log-dashboard discussion #94)

:speech_balloon: GitHub discussion traefik-log-dashboard #94 in Feature Request, started by osmollo on GitHub

Hi!

I don’t know if its a self mistake or that feature doesnt exist but the agent configuration in dashboard is not persisted. When i access to the dashboard from different clients, i have to load manually the agent configuration using a previous backup. Even in the same computer, when i log in into the dashboard after a few time, it doesnt have stored the agents.

Here is my docker-compose.yml (agent and dashboard are in different servers):

  traefik_agent:
    container_name: traefik_agent
    environment:
        PORT: '5000'
        TRAEFIK_LOG_DASHBOARD_ACCESS_PATH: /logs/access.log
        TRAEFIK_LOG_DASHBOARD_AUTH_TOKEN: <agent_token>
        TRAEFIK_LOG_DASHBOARD_ERROR_PATH: /logs/traefik.log
        TRAEFIK_LOG_DASHBOARD_GEOIP_CITY_DB: /geoip/GeoLite2-City.mmdb
        TRAEFIK_LOG_DASHBOARD_GEOIP_COUNTRY_DB: /geoip/GeoLite2-Country.mmdb
        TRAEFIK_LOG_DASHBOARD_GEOIP_ENABLED: true
        TRAEFIK_LOG_DASHBOARD_LOG_FORMAT: json
        TRAEFIK_LOG_DASHBOARD_SYSTEM_MONITORING: true
    image: hhftechnology/traefik-log-dashboard-agent:dev-dashboard
    labels:
        traefik.docker.network: traefik
        traefik.http.routers.dbeaver-secure.rule: Host(`agent.mydomain.com`)
        traefik.http.services.dbeaver.loadbalancer.server.port: '5000'
    networks:
    - traefik
    volumes:
    - traefik:/logs:ro
    - agent_geoip:/geoip:ro
    - agent_positions:/data

And the dashboard container:

  traefik_dashboard:
    container_name: …

---
💬 Join in here or [on GitHub](https://github.com/hhftechnology/traefik-log-dashboard/discussions/94).
<!-- hhf-forum-sync -->

hhftechnology commented on GitHub:

Yes it’s browser based. It doesn’t have a backend db to the store agent but you can export it via json and reload it.

osmollo commented on GitHub:

would it be possible like a feature for future releases?

i’ve recently discover this tool and looks amazing… Im trying to make it works for my current deployment. I wish i had more go skills to contribute your project

thanks and best regards

hhftechnology replied in a thread on GitHub to osmollo:

i can try but no promises.