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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
docker
Dolibarr
Commits
2ff8832e
Verified
Commit
2ff8832e
authored
2 months ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Few more config improvements
parent
471c7bd0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/dolibarr.ini
+16
-0
16 additions, 0 deletions
docker/dolibarr.ini
docker/entrypoint.sh
+3
-19
3 additions, 19 deletions
docker/entrypoint.sh
with
19 additions
and
19 deletions
docker/dolibarr.ini
+
16
−
0
View file @
2ff8832e
...
@@ -10,6 +10,22 @@ max_input_vars = 100000;
...
@@ -10,6 +10,22 @@ max_input_vars = 100000;
upload_max_filesize
=
200M
upload_max_filesize
=
200M
; Must be greater than or equal to upload_max_filesize
; Must be greater than or equal to upload_max_filesize
post_max_size
=
200M
post_max_size
=
200M
; Enable Opcache
opcache.enable
=
1
; Set the memory size for the Opcache (e.g., 128MB)
opcache.memory_consumption
=
512
; Set the maximum number of scripts to cache
opcache.max_accelerated_files
=
10000
; Set the cache validity time in seconds
opcache.revalidate_freq
=
2
; Enable file validation for updated scripts
opcache.validate_timestamps
=
1
; Set the timeout for a request before it is terminated
opcache.max_file_size
=
2M
; Enable opcache for the CLI
opcache.enable_cli
=
1
[xdebug]
[xdebug]
xdebug.client_port
=
9000
xdebug.client_port
=
9000
xdebug.mode
=
debug
xdebug.mode
=
debug
...
...
This diff is collapsed.
Click to expand it.
docker/entrypoint.sh
+
3
−
19
View file @
2ff8832e
...
@@ -12,26 +12,10 @@ if [ "$ENV" == "prod" ]; then
...
@@ -12,26 +12,10 @@ if [ "$ENV" == "prod" ]; then
sed
-i
'/\(xdebug.*\)/d'
/etc/php/
$PHP_VER
/fpm/conf.d/00-dolibarr.ini
sed
-i
'/\(xdebug.*\)/d'
/etc/php/
$PHP_VER
/fpm/conf.d/00-dolibarr.ini
sed
-i
'/error/d'
/etc/php/
$PHP_VER
/fpm/conf.d/00-dolibarr.ini
sed
-i
'/error/d'
/etc/php/
$PHP_VER
/fpm/conf.d/00-dolibarr.ini
apt-get purge
-y
php-xdebug php
$PHP_VER
-xdebug
apt-get purge
-y
php-xdebug php
$PHP_VER
-xdebug
cat
<<
EOF
>>/etc/php/
$PHP_VER
/fpm/conf.d/00-dolibarr.ini
; Enable Opcache
opcache.enable=1
; Set the memory size for the Opcache (e.g., 128MB)
opcache.memory_consumption=512
; Set the maximum number of scripts to cache
opcache.max_accelerated_files=10000
; Set the cache validity time in seconds
opcache.revalidate_freq=2
; Enable file validation for updated scripts
opcache.validate_timestamps=1
; Set the timeout for a request before it is terminated
opcache.max_file_size=2M
; Enable opcache for the CLI
opcache.enable_cli=1
EOF
else
else
apt-get purge
-y
php-opcache php-memcached
sed
-i
'/opcache/d'
/etc/php/
$PHP_VER
/fpm/conf.d/00-dolibarr.ini
sed
-i
'
d
/Expires/
/
'
/etc/apache2/sites-enabled/000-default.conf
sed
-i
'/Expires/
d
'
/etc/apache2/sites-enabled/000-default.conf
sed
-i
'
d
/AddOutputFilterByType/
/
'
/etc/apache2/sites-enabled/000-default.conf
sed
-i
'/AddOutputFilterByType/
d
'
/etc/apache2/sites-enabled/000-default.conf
fi
fi
cp
/etc/php/
$PHP_VER
/fpm/conf.d/00-dolibarr.ini /etc/php/
$PHP_VER
/cli/conf.d/00-dolibarr.ini
cp
/etc/php/
$PHP_VER
/fpm/conf.d/00-dolibarr.ini /etc/php/
$PHP_VER
/cli/conf.d/00-dolibarr.ini
echo
"*/5 * * * * www-data /usr/bin/php /var/www/dolibarr/scripts/cron/cron_run_jobs.php
$CRON_KEY
$CRON_USER
> /var/www/dolibarr/documents/cron_run_jobs.php.log"
>>
/etc/crontab
echo
"*/5 * * * * www-data /usr/bin/php /var/www/dolibarr/scripts/cron/cron_run_jobs.php
$CRON_KEY
$CRON_USER
> /var/www/dolibarr/documents/cron_run_jobs.php.log"
>>
/etc/crontab
...
...
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