Hello,
Since 2 weeks before I was deeply testing OpenKM (CE) 6.3.7, and I have to say that it left me sorely surprised of its potential, even being CE. (I have solved some small deficiencies in its configuration, or not "definciencies" but needed pre-configurations to make OpenKM OCR by itself; for example, pre-processing the files with Abbyy FineReader and its Hot Folder). So, now I would like to make a clean installation, using my own DB.
The problem is that I couldn't find a way to connect MySQL DB (container) to the OpenKM container, so integrated one is used all the time. All the available documentation I could find was for non-dockerized installations.
As I read, editing the 'OpenKM.cfg' file, located on the root of a dir called 'TOMCAT' (or TOMCAT_HOME), will allow us to specify a custom DB to be used:
https://www.openkm.com/wiki/index.php/U ... _databases
https://www.openkm.com/wiki/index.php/A ... figuration
These are the files and directories I can see on my linked docker volume:
And this is my docker setup:
Thanks in advanced.
Since 2 weeks before I was deeply testing OpenKM (CE) 6.3.7, and I have to say that it left me sorely surprised of its potential, even being CE. (I have solved some small deficiencies in its configuration, or not "definciencies" but needed pre-configurations to make OpenKM OCR by itself; for example, pre-processing the files with Abbyy FineReader and its Hot Folder). So, now I would like to make a clean installation, using my own DB.
The problem is that I couldn't find a way to connect MySQL DB (container) to the OpenKM container, so integrated one is used all the time. All the available documentation I could find was for non-dockerized installations.
As I read, editing the 'OpenKM.cfg' file, located on the root of a dir called 'TOMCAT' (or TOMCAT_HOME), will allow us to specify a custom DB to be used:
https://www.openkm.com/wiki/index.php/U ... _databases
https://www.openkm.com/wiki/index.php/A ... figuration
These are the files and directories I can see on my linked docker volume:
Code: Select all
(no OpenKM.cfg file anywhere)cache
datastore
index
okmdb.mv.db
okmdb.trace.db
And this is my docker setup:
Code: Select all
(If I set '/opt/openkm' as working dir, as official doc and other users say, it just fails to initialize the container)- VOLUMES
/volume1/docker/OpenKM:/opt/openkm/repository
- PORTS
custom:8080
- NETWORK
bridged
- VARIABLES
PATH: /user/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
JAVA_VER: 8
TOMCAT_VER: 8.5.24
OPENKM_VER: 6.3.7
- OTHERS
CMD: /bin/sh -c '/opt/openkm/bin/catalina.sh run'
Restart (error): always
Thanks in advanced.
Last edited by LauryMenton on Fri May 03, 2019 5:19 pm, edited 4 times in total.