Dolibarr Using Docker
version: "3"
services:
db:
image: yobasystems/alpine-mariadb:10.6.12
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: dolibarr
volumes:
- ./dolibarr-mysql:/var/lib/mysql
web:
image: tuxgasy/dolibarr:17
restart: always
environment:
DOLI_DB_HOST: db
DOLI_DB_USER: root
DOLI_DB_PASSWORD: root
DOLI_DB_NAME: dolibarr
DOLI_URL_ROOT: "http://localhost"
PHP_INI_DATE_TIMEZONE: "Asia/Jakarta"
# Admin's login create on the first boot
DOLI_ADMIN_LOGIN: "admin"
DOLI_ADMIN_PASSWORD: "admin"
# Skip auto install on start, good for upgrade manually
# DOLI_INSTALL_AUTO: 0
WWW_USER_ID: 33
WWW_GROUP_ID: 33
ports:
- "80:80"
volumes:
- ./dolibarr-docs:/var/www/documents
- ./dolibarr-custom:/var/www/html/custom
depends_on:
- db
Don’t forget to run chown -R www-data:www-data dolibarr-custom
to let dolibarr write on custom folder.