⚠️ Update: now a similar setup is available in tuxgasys' repository.
Setup for Dolibarr running inside a Docker Container connected to Traefik:v2.4 (reverse proxy).
This setup is for an external webserver serving Dolibarr. Dolibarr will be available by a subdomain f. e. doli.domain.com. Corresponding certificates for https are automatically generated by Traefik. This ensures the secure data transmission. A MariaDB stores Dolibarrs' data persistently.
tuxgasys' Dolibarr Docker images are used. Therefor Dolibarr will be installed automatically on first start.
- Your subdomain points to your webserver
- Docker installed
- Docker-Compose installed
- Clone this repository:
git clone https://github.com/soerenmetje/docker-traefik-dolibarr.git
- Traefik
- Change dir to
traefik
- Insert your configuration to
docker-compose.yml
(lines are marked by TODO) - Start Container
docker-compose up -d
- Wait until start is finished
- Change dir to
- Dolibarr & DB
- Change dir to
dolibarr
- Insert your configuration to
docker-compose.yml
(lines are marked by TODO) - Start Container
docker-compose up
- Make a Tee and wait until auto-install of Dolibarr is finished (can take 5 to 10 min)
- Change dir to
- Check if Dolibarr is reachable
- In order to add additional arbitrary services to Traefik:
- Add
traefik-net
to this service - Add customized labels to the
labels
section of this service
- Add
- Add and test volume (/var/www/documents) to store generated documents persistently
- https://hub.docker.com/r/tuxgasy/dolibarr - Thanks to Garcia MICHEL (tuxgasy)
- https://github.com/tuxgasy/docker-dolibarr
- https://doc.traefik.io/traefik/v2.4/