webprotege.properties and mail.properties in Docker installation
Having installed WebProtege 4.0 via Docker, there seem to be no webprotege.properties and mail.properties files anywhere in the image file directory (not even in WEB-INF). How can those settings be made when installing via Docker?
@matthias-samwald I have the same issue.
Hi,
I was trying to set the SMTP server configuration and had the same issue, and I fixed it by modifying the docker-compose as follows:
diff --git a/docker-compose.yml b/docker-compose.yml
index 34238c6fc..5da6223fa 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -17,8 +17,10 @@ services:
restart: unless-stopped
environment:
- webprotege.mongodb.host=wpmongo
+ - webprotege.data.directory=/srv/webprotege
volumes:
- ./.protegedata/protege:/srv/webprotege
+ - ./.protegedata/protegeconfig:/etc/webprotege
ports:
- 5000:8080
Restarting the docker-compose stacks creates a .protegedata/protegeconfig directory where one can put the webprotege.properties and mail.properties from the documentation.
I changed the webprotege.properties to set the following data dir : data.directory=${data.directory} as it is configured by docker-compose.
And finally configured mail.properties to suit my needs (example for a SSL config):
mail.smtp.host=host.fqdn
mail.smtp.auth=true
mail.smtp.port=465
[email protected]
mail.smtp.wp.password=MyPassword
mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
mail.smtp.socketFactory.fallback=false
mail.smtp.socketFactory.port=465