-
Notifications
You must be signed in to change notification settings - Fork 325
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
No way to persist settings in Docker #451
Comments
I am also looking into this. We need to persist data during development or, is it suggested that we should install this in a "staging" env then the local dev will point into that? |
@jsdecena I took another look at this today. Mounting the volumes that are in the docker file (https://github.com/NREL/api-umbrella/blob/master/docker/Dockerfile) with docker-compose seems to yield good results. So far I've only tested that my admin user and an API user I create are persisted, but I'm hoping the backends will be too. I've confirmed that stopping the container and rebuilding the image from scratch keeps these settings. I'm not going to bother trying to persist the frontend site because I use something else to document my API.
|
I've also tested this with named volumes and NFS volumes and works well. |
I'm using docker-compose with the config as below.
There does not seem to be a way to persist the configuration of the container. When I use the volume mounting that the documentation gives at https://apiumbrella.io/install/ the mount is empty.
If I run bash on the container I can see that there is no /etc/api-umbrella directory, but there is an /opt/api-umbrella//etc directory.
Is this perhaps a mistake in the documentation? How is it possible to persist configuration like API backends and users between instances of the container?
The text was updated successfully, but these errors were encountered: