2017-06-11 18:41:20 +02:00
2017-06-11 18:41:20 +02:00
2017-06-11 18:41:20 +02:00
2017-06-10 23:49:19 +02:00
2017-06-10 23:49:19 +02:00

Dolibarr on Docker

Docker image for Dolibarr with auto installer on first boot.

Supported tags

  • 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 5.0.0, 5.0.1, 5.0.2, 5.0.3, latest
  • 4.0.0-php7.0, 4.0.1-php7.0, 4.0.2-php7.0, 4.0.3-php7.0, 4.0.4-php7.0, 4.0.5-php7.0, 5.0.0-php7.0, 5.0.1-php7.0, 5.0.2-php7.0, 5.0.3-php7.0
  • 4.0.0-php7.1, 4.0.1-php7.1, 4.0.2-php7.1, 4.0.3-php7.1, 4.0.4-php7.1, 4.0.5-php7.1, 5.0.0-php7.1, 5.0.1-php7.1, 5.0.2-php7.1, 5.0.3-php7.1

What is Dolibarr ?

Dolibarr ERP & CRM is a modern software package to manage your organization's activity (contacts, suppliers, invoices, orders, stocks, agenda, ...).

More informations

How to run this image ?

This image is based on the officiel PHP repository.

Important: This image don't contains database. So you need to link it with a database container.

Let's use Docker Compose to integrate it with MariaDB (you can also use MySQL if you prefer).

Create docker-compose.yml file as following:

mariadb:
    image: mariadb:latest
    environment:
        MYSQL_ROOT_PASSWORD: root
        MYSQL_DATABASE: dolibarr

web:
    image: tuxgasy/dolibarr
    environment:
        DOLI_DB_HOST: mariadb
        DOLI_DB_USER: root
        DOLI_DB_PASSWORD: root
        DOLI_DB_NAME: dolibarr
        DOLI_URL_ROOT: 'http://0.0.0.0'
        PHP_INI_DATE_TIMEZONE: 'Europe/Paris'
    ports:
        - "80:80"
    links:
        - mariadb

Then run all services docker-compose up -d. Now, go to http://0.0.0.0 to access to the new Dolibarr installation.

Environment variables summary

Variable Default value Description
DOLI_INSTALL_AUTO 1 1: The installation will be executed on first boot
DOLI_DB_HOST mysql Host name of the MariaDB/MySQL server
DOLI_DB_USER doli Database user
DOLI_DB_PASSWORD doli_pass Database user's password
DOLI_DB_NAME dolidb Database name
DOLI_ADMIN_LOGIN admin Admin's login create on the first boot
DOLI_ADMON_PASSWORD admin Admin'password
DOLI_URL_ROOT http://localhost Url root of the Dolibarr installation
PHP_INI_DATE_TIMEZONE UTC Default timezone on PHP
WWW_USER_ID ID of user www-data. ID will not changed if leave empty. During a development, it is very practical to put the same ID as the host user.
WWW_GROUP_ID ID of group www-data. ID will not changed if leave empty.
Description
Official Dolibarr docker images. Based on the work of Garcia MICHEL (tuxgasy)
Readme GPL-3.0 880 KiB
Languages
Shell 87.6%
Dockerfile 7.3%
PHP 5.1%