Skip to content

[QUESTION] How to get automatic files refreshing with docker compose deployment ? #1824

Open
@maks7d

Description

@maks7d

Question

I deployed dashy on my server using docker compose. I made my own widget which scans the connected users to my VPN. For that, I use an html page which reads in a .json file where all the connected users are stored. This .json is refreshed every 5 minutes. The issue is dashy isn't refreshing automatically the html file to refresh the widget. I must docker compose down then docker compose up -d to update the connected users and any modification in my html file. For the config.yml file, I mounted a volume to refresh automatically the configuration of the page and this works by linking my config.yml to /app/user-data/conf.yml. I tried to do the same for my html file by mounting a volume in /app/public but it doesn't work. My question is : how to get dashy refreshing automatically some files we have selected placed in a certain folder ? I didn't any answer to that question with docker compose in the documentation, neither in the issues, nor in chatgpt. Thanks.

Here is the docker-compose.yml file I use :
docker-compose.txt

Category

Setup and Deployment

Please tick the boxes

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions