-
-
Save Danielss89/dffe6eb04ece2aa185e6d8d11bf82ad2 to your computer and use it in GitHub Desktop.
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
services: | |
php: | |
build: . | |
links: | |
- nginx | |
nginx: | |
build: docker/nginx | |
links: | |
- php |
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
version: '3' | |
services: | |
mysql: | |
image: mysql:5.7 | |
ports: | |
- "4432:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: 123 | |
MYSQL_USER: inventory | |
MYSQL_PASSWORD: 123 | |
MYSQL_DATABASE: inventory | |
labels: | |
- convox.health.timeout=60 | |
mailhog: | |
image: mailhog/mailhog | |
ports: | |
- "8034:8025" | |
labels: | |
- convox.health.timeout=60 | |
nginx: | |
image: ./docker/nginx | |
dns: | |
- 8.8.8.8 | |
- 8.8.4.4 | |
links: | |
- php | |
ports: | |
- "8056:80" | |
labels: | |
- convox.port.443.protocol=tls | |
php: | |
build: . | |
links: | |
- mysql | |
- mailhog | |
labels: | |
- convox.health.timeout=60 |
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
FROM openresty/openresty:stretch | |
COPY default.conf /etc/nginx/conf.d/default.conf |
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
FROM php:7.3-fpm | |
RUN apt-get update \ | |
&& apt-get install curl wget gnupg git -y mysql-client | |
RUN echo 'date.timezone = Europe/Copenhagen' > /usr/local/etc/php/conf.d/date.ini | |
RUN apt-get install -y build-essential | |
RUN apt-get update && apt-get install -y libpng-dev libpng-dev zlib1g-dev libicu-dev libzip-dev g++ \ | |
&& docker-php-ext-configure intl \ | |
&& docker-php-ext-install -j$(nproc) pdo pdo_mysql gd zip intl bcmath session mbstring json iconv gettext mysqli | |
RUN apt-get update && \ | |
apt-get install pkg-config libssl-dev libmagickwand-dev libcurl4-openssl-dev -y && \ | |
pecl install imagick-beta -y && \ | |
echo "extension=imagick.so" >> /usr/local/etc/php/conf.d/docker-php-ext-imagick.ini | |
RUN echo "memory_limit=512M" >> /usr/local/etc/php/php.ini | |
WORKDIR /var/www/application | |
RUN ls | |
RUN curl -sS https://getcomposer.org/installer | php | |
RUN mv composer.phar /usr/local/bin/composer | |
COPY . /var/www/application | |
RUN composer install --verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader | |
ARG GIT_REVISION | |
CMD php-fpm | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment