Skip to content
Snippets Groups Projects
Verified Commit e3f02904 authored by David Beniamine's avatar David Beniamine
Browse files

Fix dolibarr source not cloned

parent 305f5e00
No related branches found
No related tags found
No related merge requests found
PORT=8080
DOLI_URL=http://localhost:8080
DOLI_VERSION=11.0.3
RESTART=no
PASS=insert-randomstringhere
......@@ -13,15 +13,16 @@ mariadb:
dolibarr:
build: ./docker
volumes:
- "./dolibarr_src/htdocs:/var/www/html:rw"
#- "./dolibarr_src/htdocs:/var/www/html:rw" uncomment to use local clone of dolibarr sources
- "./dolibarr_docs:/var/www/documents:rw"
- "./src:/var/www/html/custom:rw"
environment:
DOLI_VERSION: ${DOLI_VERSION}
DOLI_DB_HOST: mariadb
DOLI_DB_USER: dolibarr
DOLI_DB_PASSWORD: ${PASS}
DOLI_DB_NAME: dolibarr
DOLI_URL_ROOT: 'http://localhost:8080'
DOLI_URL_ROOT: ${DOLI_URL}
PHP_INI_DATE_TIMEZONE: 'Europe/Paris'
ports:
- "${PORT}:80"
......
......@@ -49,7 +49,12 @@ RUN a2enmod proxy
RUN a2enmod proxy_fcgi
#RUN a2enmod calendar
WORKDIR /var/www/
RUN git clone https://github.com/Dolibarr/dolibarr
RUN rm -rf html
RUN ln -s /var/www/dolibarr/htdocs /var/www/html
WORKDIR /var/www/html
RUN chown -R www-data:www-data /var/www/html/
#RUN sudo -u www-data composer global require laravel/installer
#RUN ln -s /var/www/.composer/vendor/bin/laravel /usr/local/bin/laravel
COPY entrypoint.sh /
......
#!/bin/bash
git checkout $DOLI_VERSION
php-fpm7.3 -D
apache2ctl -DFOREGROUND
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment