dolibarr/dev/build/docker-dev
Alexandre Janniaux f3613f0425 docker-dev: compose: fix warnings
version is deprecated and yaml document starts after --- marker.
2025-02-02 20:09:49 +01:00
..
mariadb
.dockerignore
docker-compose.yml docker-dev: compose: fix warnings 2025-02-02 20:09:49 +01:00
docker-run.sh docker-dev: remove files rights change in docker-run.sh 2025-02-02 20:09:47 +01:00
Dockerfile docker-dev: add support for postgresql database 2025-02-02 20:09:46 +01:00
postgres.yml docker-dev: add support for postgresql database 2025-02-02 20:09:46 +01:00
README.md

How to use it ?

The docker-compose.yml file is a sample of a config file to use to build and run Dolibarr in the current workspace with Docker. This docker image is intended for development usage. For production usage you should consider other contributor reference like https://hub.docker.com/r/dolibarr/dolibarr

Before build/run, define the variable HOST_USER_ID as following:

    export HOST_USER_ID=$(id -u)

Go in repository build/docker :

    cd dev/build/docker

And then, you can run :

    docker-compose up

This will run 4 containers Docker : Dolibarr, MariaDB, PhpMyAdmin and MailDev.

The URL to go to the Dolibarr is :

    http://0.0.0.0

The URL to go to PhpMyAdmin is (login/password is root/root) :

    http://0.0.0.0:8080

In Dolibarr configuration Email let PHP mail function, To see all mail send by Dolibarr go to maildev

    http://0.0.0.0:8081

Setup the database connection during the installation process, please use mariadb (name of the database container) as database host. Setup documents folder, during the installation process, to /var/documents