Easy setup for DocDokuPLM with docker-compose.
- Docker
- Docker Compose
- Keytool (From any JRE, see https://openjdk.java.net/)
- Set vm.max_map_count to at least 262144
Clone or download this repository.
$ git clone https://github.com/docdoku/docdoku-plm-docker.git
$ cd docdoku-plm-docker
Open a terminal and run
$ ./start.sh
You can now verify that all containers are up
$ docker-compose ps
Then you can access to http://localhost:8000 from your web browser
--------------------------
Port Service
--------------------------
8000 docdoku-plm-front
8001 docdoku-plm-server
8002 kibana
8003 mailhog
8004 adminer
--------------------------
You can get HTTPS on your localhost working out of the box.
Create a new entry in /etc/hosts. Note: after editing this file you might have to restart your networking service depending on your OS.
127.0.0.1 docdokuplm.local
Import the rootCA sslcertificate to your browser trusted authorities.
Make sure to edit the docker-compose.yml
to use front-ssl.json
instead of front.json
and edit env/back.env
to set DOCDOKU_PLM_CODEBASE
to https://docdokuplm.local:9000
, then recreate the back
and front
service if they are already running.
$ docker-compose up --force-recreate --no-deps front
$ docker-compose up --force-recreate --no-deps back
Then you can access to https://docdokuplm.local:9000 from your web browser
In case you want to start a new fresh install run this following commands.
Note: this will delete all data stored (database, files, volumes) and containers. Make sure to backup everything first.
$ docker-compose rm --stop --force -v
$ rm -rf ./data
$ rm ./keystore
$ docker volume rm docdoku-plm-server-volume
$ ./start.sh
Make sure to edit all passwords in env files before you start the script. Please also consider using a firewall and remove any unnecessary port mapping from docker-compose.yml.