-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
744f232
commit b3a612a
Showing
39 changed files
with
3,658 additions
and
706 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
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
File renamed without changes.
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,94 @@ | ||
ARG ARCH= | ||
|
||
# Use an image like PHP_BASE_IMAGE=x.y-apache-buster | ||
FROM ${ARCH}php:7.4-fpm | ||
|
||
LABEL maintainer="Garcia MICHEL <[email protected]>" | ||
|
||
ENV DOLI_VERSION 15.0.3 | ||
ENV DOLI_INSTALL_AUTO 1 | ||
ENV DOLI_PROD 1 | ||
|
||
ENV DOLI_DB_TYPE mysqli | ||
ENV DOLI_DB_HOST mysql | ||
ENV DOLI_DB_HOST_PORT 3306 | ||
ENV DOLI_DB_NAME dolidb | ||
|
||
ENV DOLI_URL_ROOT 'http://localhost' | ||
ENV DOLI_NOCSRFCHECK 0 | ||
|
||
ENV DOLI_AUTH dolibarr | ||
ENV DOLI_LDAP_HOST 127.0.0.1 | ||
ENV DOLI_LDAP_PORT 389 | ||
ENV DOLI_LDAP_VERSION 3 | ||
ENV DOLI_LDAP_SERVER_TYPE openldap | ||
ENV DOLI_LDAP_LOGIN_ATTRIBUTE uid | ||
ENV DOLI_LDAP_DN 'ou=users,dc=my-domain,dc=com' | ||
ENV DOLI_LDAP_FILTER '' | ||
ENV DOLI_LDAP_BIND_DN '' | ||
ENV DOLI_LDAP_BIND_PASS '' | ||
ENV DOLI_LDAP_DEBUG false | ||
|
||
ENV DOLI_CRON 0 | ||
|
||
ENV WWW_USER_ID 33 | ||
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 apt-get update -y \ | ||
&& apt-get dist-upgrade -y \ | ||
&& apt-get install -y --no-install-recommends \ | ||
libc-client-dev \ | ||
libfreetype6-dev \ | ||
libjpeg62-turbo-dev \ | ||
libkrb5-dev \ | ||
libldap2-dev \ | ||
libpng-dev \ | ||
libpq-dev \ | ||
libxml2-dev \ | ||
libzip-dev \ | ||
default-mysql-client \ | ||
postgresql-client \ | ||
cron \ | ||
rsync \ | ||
&& apt-get autoremove -y \ | ||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \ | ||
&& docker-php-ext-install -j$(nproc) calendar intl mysqli pdo_mysql gd soap zip \ | ||
&& docker-php-ext-configure pgsql -with-pgsql \ | ||
&& docker-php-ext-install pdo_pgsql pgsql \ | ||
&& docker-php-ext-configure ldap --with-libdir=lib/$(gcc -dumpmachine)/ \ | ||
&& docker-php-ext-install -j$(nproc) ldap \ | ||
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \ | ||
&& docker-php-ext-install imap \ | ||
&& mv ${PHP_INI_DIR}/php.ini-production ${PHP_INI_DIR}/php.ini \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Get Dolibarr | ||
RUN curl -fLSs https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.tar.gz |\ | ||
tar -C /tmp -xz && \ | ||
mkdir -p /usr/src/dolibarr && \ | ||
cp -r /tmp/dolibarr-${DOLI_VERSION}/htdocs/* /usr/src/dolibarr/ && \ | ||
ln -s /var/www/html /var/www/htdocs && \ | ||
cp -r /tmp/dolibarr-${DOLI_VERSION}/scripts /var/www/ && \ | ||
rm -rf /tmp/* && \ | ||
mkdir -p /var/www/documents && \ | ||
mkdir -p /var/www/html/custom && \ | ||
chown -R www-data:www-data /var/www | ||
|
||
EXPOSE 9000 | ||
VOLUME /var/www/documents | ||
VOLUME /var/www/html | ||
VOLUME /var/www/html/custom | ||
|
||
COPY docker-init.php /var/www/scripts/ | ||
COPY docker-run.sh /usr/local/bin/ | ||
ENTRYPOINT ["docker-run.sh"] | ||
|
||
CMD ["php-fpm"] |
File renamed without changes.
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
File renamed without changes.
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
Oops, something went wrong.