Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Dolibarr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
docker
Dolibarr
Commits
e3f02904
Verified
Commit
e3f02904
authored
May 4, 2020
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Fix dolibarr source not cloned
parent
305f5e00
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.env.sample
+2
-0
2 additions, 0 deletions
.env.sample
docker-compose.yml
+3
-2
3 additions, 2 deletions
docker-compose.yml
docker/Dockerfile
+5
-0
5 additions, 0 deletions
docker/Dockerfile
docker/entrypoint.sh
+1
-0
1 addition, 0 deletions
docker/entrypoint.sh
with
11 additions
and
2 deletions
.env.sample
+
2
−
0
View file @
e3f02904
PORT=8080
DOLI_URL=http://localhost:8080
DOLI_VERSION=11.0.3
RESTART=no
PASS=insert-randomstringhere
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
3
−
2
View file @
e3f02904
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
docker/Dockerfile
+
5
−
0
View file @
e3f02904
...
...
@@ -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 /
...
...
This diff is collapsed.
Click to expand it.
docker/entrypoint.sh
+
1
−
0
View file @
e3f02904
#!/bin/bash
git checkout
$DOLI_VERSION
php-fpm7.3
-D
apache2ctl
-DFOREGROUND
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment