lmenezes / cerebro-docker

official cerebro docker image
118 stars 40 forks source link

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

Open robinlennox opened 2 years ago

robinlennox commented 2 years ago

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

inkstak commented 1 year ago

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