Each time I restart my container it override my graphs directory mentioned in docker-compose.
I changed Build_GRAPHS = False, i tried to remove ./graphs path to make them permanent and alos changed them several times, but each time it overrides my graphs directory and restart the generation.
Any idea how to persist graphs paths when we have graphs already built?!
if you are using docker-compose, it should save them using the path mapped to the volume. One thing I found with compose though is that if you change the yaml file, you must take down and bring back up the container for the changes to take effect - a simple docker-compose restart doesn’t apply the changes.
Thanks @adam, in fact i tried to change Build_GRAPHS = False and restart the container docker restart ors-app after the generation is done and directly it override my graphs!
Even moving graphs directory and point to them in the docker-compose and restart the container will override the graphs directory.
Rebuilding with docker restart will not work after changing the file, as docker itself knows nothing about the compose file and its parameters. As far as it is concerned, the environment value is still set to false. You MUST build it with docker-compose if you are making changes to the compose file (docker-compose down and then docker-compose up).