webprotege icon indicating copy to clipboard operation
webprotege copied to clipboard

webprotege.properties and mail.properties in Docker installation

Open matthias-samwald opened this issue 5 years ago • 2 comments

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 avatar May 14 '20 15:05 matthias-samwald

@matthias-samwald I have the same issue.

nikokaoja avatar Jul 27 '20 18:07 nikokaoja

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

dbeniamine avatar Sep 08 '20 12:09 dbeniamine