Initial import
This commit is contained in:
commit
68dd36e504
4 changed files with 81 additions and 0 deletions
34
docker-compose.yml
Normal file
34
docker-compose.yml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: mariadb:10.3
|
||||||
|
volumes:
|
||||||
|
- db-data:/var/lib/mysql
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: example
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
|
dolibarr:
|
||||||
|
build: ./image
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
depends_on:
|
||||||
|
- "db"
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
|
adminer:
|
||||||
|
image: adminer
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 8080:8080
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
|
networks:
|
||||||
|
backend:
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
db-data:
|
39
image/Dockerfile
Normal file
39
image/Dockerfile
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
FROM php:7.2-apache
|
||||||
|
MAINTAINER Glenn ROLLAND <glenux@glenux.net>
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-cache search lib mysql dev$ \
|
||||||
|
&& apt-get install -y \
|
||||||
|
wget unzip curl \
|
||||||
|
libfreetype6-dev \
|
||||||
|
libjpeg62-turbo-dev \
|
||||||
|
libpng-dev \
|
||||||
|
libmysql++-dev \
|
||||||
|
&& apt-get autoremove \
|
||||||
|
&& docker-php-ext-install -j$(nproc) iconv \
|
||||||
|
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
|
||||||
|
&& docker-php-ext-install -j$(nproc) gd \
|
||||||
|
&& docker-php-ext-install pdo pdo_mysql mysqli
|
||||||
|
|
||||||
|
RUN curl -sS https://getcomposer.org/installer \
|
||||||
|
| php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
|
|
||||||
|
RUN wget \
|
||||||
|
-O /tmp/dolibarr-7.0.0.zip \
|
||||||
|
https://github.com/Dolibarr/dolibarr/archive/7.0.0.zip
|
||||||
|
|
||||||
|
RUN unzip -d /usr/src /tmp/dolibarr-7.0.0.zip \
|
||||||
|
&& chown -R www-data:www-data /usr/src/dolibarr-7.0.0 \
|
||||||
|
&& rm -fr /var/www/html \
|
||||||
|
&& cp -a /usr/src/dolibarr-7.0.0 /var/www/html
|
||||||
|
|
||||||
|
ADD php-uploads.ini /usr/local/etc/php/conf.d/glenux-uploads.ini
|
||||||
|
ADD php-performance.ini /usr/local/etc/php/conf.d/glenux-performance.ini
|
||||||
|
|
||||||
|
RUN sed \
|
||||||
|
-i 's|/var/www/html|/var/www/html/htdocs|' \
|
||||||
|
/etc/apache2/sites-enabled/000-default.conf
|
||||||
|
|
||||||
|
RUN cd /var/www/html \
|
||||||
|
composer install
|
||||||
|
|
3
image/php-performance.ini
Normal file
3
image/php-performance.ini
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
; Maximum amount of memory a script may consume (64MB)
|
||||||
|
memory_limit = 256M
|
||||||
|
max_input_vars = 3000
|
5
image/php-uploads.ini
Normal file
5
image/php-uploads.ini
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
file_uploads = On
|
||||||
|
upload_max_filesize = 128M
|
||||||
|
post_max_size = 128M
|
||||||
|
max_execution_time = 600
|
||||||
|
max_input_time = 120
|
Loading…
Reference in a new issue