This installation mode is still experimental
This page will explain how to install Dokos in a Docker container.
This installation method is currently only available for the development branch. The master (production) branch will soon be available also.
In order to install Dokos on Docker, you need to install the following components on your server:
You can find more information on how to install docker
and docker-compose
on the docker website
In order to facilitate the installation and the maintenance of the Docker images, we have created a tool called dokidocker
.
This tool is based on the outstanding work done by the frappe-docker team.
In order to download dokidocker
, run the following command on your server:
git clone https://gitlab.com/dokos/dokidocker.git
cd dokidocker
Before launching the docker images, you need to define a number of environment variables.
Start by creating an environment file by copying the provided template:
cp env-template .env
Then edit the newly created file to customize each environment variables.
You can use any text editor or a command line editor like for example nano .env
.
The default variables are:
latest
refers to the latest development version. For other available tags, check the container registrylatest
refers to the latest development version. For other available tags, check the container registrymariadb
if you use the default database container.erp.example.com
or erp.localhost
web
, for production websecure
.dodock.local.no-cert-resolver
for local setup.dodock.local.no-redirect-rule
for local setup.dodock.local.no-entrypoint
for local setup.dodock.local.no-middleware
for local setup.dodock.local-no-redirect-middleware
for local setup.In order to start Dokos, choose a project name and launch the following command:
docker-compose --project-name <name-of-you-project> up -d
From the dokidocker
folder, start by editing the versions of Dodock and Dokos by modifying the values of DODOCK_VERSION and DOKOS_VERSION.
If you are using images not pointing to a specific version, this step is not necessary.
nano .env
Pull the new images
docker-compose pull
And restart your containers
docker-compose --project-name <name-of-you-project> up -d
docker logs <name-of-you-project>_site-creator_1 -f
to monitor its progress.Administrator
as username and the password defined against variable ADMIN_PASSWORD.