forked from tuxgasy/docker-dolibarr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'tuxgasy:master' into master
- Loading branch information
Showing
31 changed files
with
313 additions
and
1,075 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ LABEL maintainer="Garcia MICHEL <[email protected]>" | |
|
||
ENV DOLI_VERSION %DOLI_VERSION% | ||
ENV DOLI_INSTALL_AUTO 1 | ||
ENV DOLI_PROD 1 | ||
|
||
ENV DOLI_DB_TYPE mysqli | ||
ENV DOLI_DB_HOST mysql | ||
|
@@ -34,6 +35,15 @@ ENV WWW_GROUP_ID 33 | |
|
||
ENV PHP_INI_DATE_TIMEZONE 'UTC' | ||
ENV PHP_INI_MEMORY_LIMIT 256M | ||
ENV PHP_INI_UPLOAD_MAX_FILESIZE 2M | ||
ENV PHP_INI_POST_MAX_SIZE 8M | ||
ENV PHP_INI_ALLOW_URL_FOPEN 0 | ||
|
||
RUN sed -i \ | ||
-e 's/^\(ServerSignature On\)$/#\1/g' \ | ||
-e 's/^#\(ServerSignature Off\)$/\1/g' \ | ||
-e 's/^\(ServerTokens\) OS$/\1 Prod/g' \ | ||
/etc/apache2/conf-available/security.conf | ||
|
||
RUN apt-get update -y \ | ||
&& apt-get dist-upgrade -y \ | ||
|
@@ -77,6 +87,7 @@ EXPOSE 80 | |
VOLUME /var/www/documents | ||
VOLUME /var/www/html/custom | ||
|
||
COPY docker-init.php /var/www/scripts/ | ||
COPY docker-run.sh /usr/local/bin/ | ||
ENTRYPOINT ["docker-run.sh"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
require_once '../htdocs/master.inc.php'; | ||
require_once DOL_DOCUMENT_ROOT . '/core/modules/modUser.class.php'; | ||
$mod = new modUser($db); | ||
$mod->init(); |
Oops, something went wrong.