how could I configure this in the docker compose?
Edit: the trains-agent points to a different trains.conf config as I wis., I want the dev environment to point to a different location trains.conf as well
Hi SmarmySeaurchin8
You can configure TRAINS_CONFIG_FILE env var with the conf file you want to run it with. Can this do the trick?
Is there a way to set this via a config file? like the docker compose yml?
You can configure env vars in your docker compose, but what is your scenario? Maybe there are some other solutions
For the trains-agent , you have an option to specify the trains.conf file you want it to run with. just start the trains-agent with trains-agent --config ~/trains_agent.conf (where ~/trains_agent.conf is your ~/trains.conf file for the agent run).
how could I configure this in the docker compose?
Do you mean to env vars?
My root folder is applicable to my user only. I wish to use a shared trains.conf file, so the trains_config_file can't point to ~/trains.conf sadly
In your development environment you don't have a docker-compose file... Can't you simply set it in your .bashrc file?