Closed fxprunayre closed 3 years ago
In the meantime I can mount the file directly into the container:
touch encryptor.properties
volumes:
- geonetwork:/catalogue-data
- ./encryptor.properties:/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/encryptor.properties
An empty encryptor.properties
files needs to exists before running docker-compose up
so Docker doesn't create a directory instead of a file.
Created PR to official images repo https://github.com/docker-library/official-images/pull/10143.
Running the image I see this warning:
However the data directory is set to
-Dgeonetwork.data.dir=/catalogue-data
. Is there any way to specify the path ofencryptor.properties
so we can put it in the data directory and keep it when the container is destroyed/re-created? @fxprunayre @josegar74