...
Code Block |
---|
docker pull practiceinsight/dms_postgresql docker pull practiceinsight/dms_elasticsearch docker pull practiceinsight/dms_nuxeo_suite:1.9.02 |
Run DMS Docker containers
...
- PostgreSQL data folder must be mounted. Be sure, that user that launches docker container has write permissions on this folder. This folder should contain a valid data of Postgresql 9.3, it also can be empty, then new nuxeo database will be created there. If you have older version of Postgresql, then you need to backup/restore it with scripts of WinMac.
- Port 5432 must be exposed.
- If you want to backup and restore database with the WinMac scripts, then the backup volume must be mounted with -v /backup_folder_on_host:/backup
Example command:
Code Block |
---|
docker run - |
...
p 5432:5432 |
...
\ -v /local_postgres_data_folder:/var/db/postgres/data |
...
\ --net=host --pid=host \ --name postgres -d practiceinsight/dms_postgresql |
Run DMS ElasticSearch container
...
Code Block |
---|
docker run -p 9200:9200 -p 9300:9300 \ -v /local_elasticsearch_data_folder:/data \ --net=host --pid=host \ --name elastic -d practiceinsight/dms_elasticsearch |
...
Key | Sample value | Description |
---|---|---|
nuxeo | Nuxeo database name | |
nuxeo.db.user | nuxeo | Nuxeo database username |
nuxeo.db.host | 127.0.0.1 | Nuxeo database hostname or ip |
db localhost (if postgres container is linked) | ||
db.yourserver.com | ||
nuxeo.db.port | 5432 | Nuxeo database port |
nuxeo.db.password | nuxeop | Nuxeo database password |
elasticsearch.addressList | 127.0.0.1:9300 | Elasticsearch server hostname or ip with port |
eslocalhost:9300 (if elasticsearch container is linked) | ||
es.yourserver.com:9300 | ||
elasticsearch.clusterName | elasticsearch | Name of elasticsearch cluster used for the Nuxeo |
elasticsearch.indexName | nuxeo | Name of elasticsearch Nuxeo index |
elasticsearch.indexNumberOfShards | 5 (is default value in elasticsearch) | Number of elasticsearch shards used for the Nuxeo index |
elasticsearch.indexNumberOfReplicas | 0 | Number of elasticsearch replicas used for the Nuxeo index |
patricia.db.jdbcDriver | com.microsoft.sqlserver.jdbc.SQLServerDriver | JDBC driver to be used (must be embedded to the pi-nuxeo-marketplace) |
patricia.db.jdbcUrl | jdbc:sqlserver://192.168.3.99:1433; databaseName=patricia_GHF_demo; integratedSecurity=false (remove line breaks) | JDBC connection URL (the structure depends on driver) |
patricia.db.username | patricia | Patricia database username |
patricia.db.password | password | Patricia database password |
nuxeo.wizard.done | true | Flag that shows that nuxeo is already configured and no need to launch configuration wizard on the first launch |
Also be sure that Nuxeo installation id is set in the pat_configuration table of Patricia DB.Container can be linked with postgresql and elasticsearch containers then you can use "db" for postgresql and "es" for elasticsearch as a hostnames of servers in the nuxeo.conf file.
Example command to run with containers linkedNuxeo container:
Code Block |
---|
docker run -p 8080:8080 -p 9080:9080 \
-v /local_nuxeo_data_folder:/var/lib/nuxeo/data \
-v /local_config_folder:/etc/nuxeo \
--link postgres:db --link elastic:es \
--name nuxeo practiceinsight/dms_nuxeo_suite:1.9.0 |
Example command to run with external servers linked, in this case be sure that these servers are configured in the nuxeo.conf and are accessible from the host machine:
Code Block |
---|
docker run -p 8080:8080 -p 9080:9080 \ -v /local_nuxeo_data_folder:/var/lib/nuxeo/data \ -v /local_config_folder:/etc/nuxeo net=host --pid=host \ --name nuxeo practiceinsight/dms_nuxeo_suite:1.9.02 |
Once all three containers are up and running, you should be able to get access to the Nuxeo with PI marketplace installed via:
...