Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Allow Conf file to be mounted on host #18

Open
robinlennox opened this issue Dec 15, 2021 · 1 comment
Open

[Fix] Allow Conf file to be mounted on host #18

robinlennox opened this issue Dec 15, 2021 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@robinlennox
Copy link

This would allow the changes to the conf file to be persistent between reboots.

@moliware moliware added the help wanted Extra attention is needed label Jan 23, 2022
@inkstak
Copy link

inkstak commented Sep 15, 2022

You can do this using volumes:

docker volume create cerebro_conf
docker run --name cerebro -v cerebro_conf:/opt/cerebro/conf -dp 9000:9000 lmenezes/cerebro

On MacOS, the volume is hidden and run in a small VM.
To edit application.conf on your host machine:

docker cp cerebro:/opt/cerebro/conf/application.conf ~/Downloads/application.conf
# edit ~/Downloads/application.conf
docker cp ~/Downloads/application.conf cerebro:/opt/cerebro/conf/application.conf
docker restart cerebro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants