File tree Expand file tree Collapse file tree 3 files changed +94
-0
lines changed Expand file tree Collapse file tree 3 files changed +94
-0
lines changed Original file line number Diff line number Diff line change 1+ version : ' 3'
2+
3+ services :
4+ php :
5+ build : ./docker
6+ container_name : enso
7+ ports :
8+ - 8000:80
9+ volumes :
10+ - ./docker/vhosts.conf:/etc/apache2/sites-enabled/000-default.conf
11+ - ./:/var/www/html
12+ depends_on :
13+ - mysqldb
14+
15+ mysqldb :
16+ image : mysql:5.7.21
17+ container_name : enso-${DB_CONNECTION}
18+ restart : always
19+ env_file :
20+ - .env
21+ environment :
22+ - MYSQL_DATABASE=${DB_DATABASE}
23+ - MYSQL_USER=${DB_USERNAME}
24+ - MYSQL_PASSWORD=${DB_PASSWORD}
25+ - MYSQL_ALLOW_EMPTY_PASSWORD=true
26+ ports :
27+ - 3306:3306
28+ volumes :
29+ - /var/lib/mysql
30+
31+ # myadmin:
32+ # image: phpmyadmin/phpmyadmin:4.7
33+ # container_name: enso-phpmyadmin
34+ # ports:
35+ # - 8081:80
36+ # environment:
37+ # - PMA_ARBITRARY=1
38+ # - PMA_HOST=${DB_CONNECTION}
39+ # restart: always
40+ # depends_on:
41+ # - mysqldb
Original file line number Diff line number Diff line change 1+ FROM php:7.3-apache
2+
3+ # Apache configuration
4+ RUN a2enmod rewrite
5+
6+ # Install dependencies
7+ RUN apt-get update \
8+ && apt-get install -y zlib1g-dev libicu-dev wget gnupg g++ git openssh-client \
9+ && apt-get install -y libxml2-dev libfreetype6-dev libpng-dev libjpeg-dev libzip-dev \
10+ && apt-get install -y libmagickwand-dev \
11+ && docker-php-ext-configure intl \
12+ && docker-php-ext-install intl pdo_mysql zip
13+
14+ # clean
15+ RUN rm -rf /var/cache/apk/*
16+
17+ # Install php extensions.
18+ RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include
19+ RUN docker-php-ext-install bcmath intl zip pcntl soap gd
20+
21+ # Enable imagick
22+ RUN pecl install imagick-3.4.3
23+ RUN echo "extension=imagick.so" >> /usr/local/etc/php/conf.d/imagick.ini
24+
25+ # Install xdebug
26+ RUN pecl install xdebug-2.7.0RC2 && docker-php-ext-enable xdebug
27+
28+ # Install composer
29+ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
30+
31+ # Install Yarn
32+ RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
33+ && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
34+ && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
35+
36+ RUN apt-get update \
37+ && apt-get install -y nodejs \
38+ && apt-get install -y yarn
Original file line number Diff line number Diff line change 1+ <VirtualHost *:80>
2+ ServerAdmin webmaster@localhost
3+ DocumentRoot /var/www/html/public
4+
5+ <Directory /var/www/html/>
6+ Options Indexes FollowSymLinks MultiViews
7+ AllowOverride All
8+ Order deny,allow
9+ Allow from all
10+ </Directory>
11+
12+ ErrorLog ${APACHE_LOG_DIR}/error.log
13+ CustomLog ${APACHE_LOG_DIR}/access.log combined
14+
15+ </VirtualHost>
You can’t perform that action at this time.
0 commit comments