Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow us to package up our application with all of the parts it needs, such as libraries and other dependencies, and ship it all out as one package. By doing so, thanks to the container, LogicalDOC will run on any other machine regardless of any customized settings that machine might have.
Download and install Docker for your system: https://www.docker.com/community-edition
Installation and first run of LogicalDOC
Once you have Docker installed, execute this command to pull the LogicalDOC image and run your first container:
$ docker run --name=logicaldoc-ee -d -p 8080:8080 --env LDOC_USERNO=<your userno> logicaldoc/logicaldoc-ee-mysql
This command installs the Docker image and will put it in execution creating a Container named logicaldoc-ee. LogicalDOC is now accessible at http://localhost:8080/ and default User and Password are admin / admin.
When you run the image the first time, you have to pass your license's UserNo as parameter of the command: --env LDOC_USERNO=<your userno>
Start and Stop the LogicalDOC container
The run command has created a persistent container in your host server, you should execute docker run just one time. Each time you execture the docker run, a new empty container will be created. Normally you stop and start several times the same LogicalDOC container initially created with the run.
To stop the currently running LogicalDOC Container, type this command:
$ docker stop logicaldoc-ee
To start again the LogicalDOC Container, type this command:
$ docker start logicaldoc-ee
The data created during the execution are maintained persistent inside the Container
LogicalDOC on Docker Hub
To know about all the options available for the LogicalDOC Docker Images, visit our Docker Hub profile:
- LogicalDOC Enterprise with MySQL: https://hub.docker.com/r/logicaldoc/logicaldoc-ee-mysql/
- LogicalDOC Enterprise Database Independent: https://hub.docker.com/r/logicaldoc/logicaldoc-ee/