Last active
June 11, 2017 18:26
-
-
Save styks1987/fe87cc5a6f3a0c074baa9c7b5bdda2e3 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
FROM httpd:2.4-alpine | |
COPY ./httpd.conf /usr/local/apache2/conf/httpd.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
version: '3' | |
services: | |
apache: | |
build: | |
context: ./config/docker | |
dockerfile: Dockerfile-apache | |
ports: | |
- "49080:80" | |
- "49443:443" | |
links: | |
- php | |
- php:app_php | |
volumes: | |
- ./:/usr/local/apache2/htdocs/ | |
php: | |
build: | |
context: ./config/docker | |
dockerfile: Dockerfile-php | |
ports: | |
- "9000:9000" | |
links: | |
- mysql | |
- mysql_test | |
volumes: | |
- ./:/usr/local/apache2/htdocs/ | |
mysql: | |
build: | |
context: ./config/docker | |
dockerfile: Dockerfile-mysql | |
ports: | |
- "49306:3306" | |
volumes: | |
- /usr/data | |
composer: | |
build: | |
context: ./config/docker | |
dockerfile: Dockerfile-composer | |
volumes: | |
- ./:/usr/local/apache2/htdocs/ | |
command: update --ignore-platform-reqs | |
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 composer/composer:php5-alpine | |
RUN apk update | |
RUN apk add git | |
COPY ./auth.json /composer/auth.json |
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 mysql:5.6 | |
ENV MYSQL_ROOT_PASSWORD=MYPASSWORD | |
ENV MYSQL_DATABASE=DATABASE | |
ENV MYSQL_USER=USER | |
ENV MYSQL_PASSWORD=PASSWORD | |
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:5-fpm-alpine | |
COPY ./.env ./config/.env | |
RUN apk update && apk add icu-dev php5-intl php5-mysql freetype-dev libjpeg-turbo-dev libpng-dev | |
RUN docker-php-ext-install intl pdo_mysql gd | |
RUN apk add bash bash-doc bash-completion | |
RUN apk add git | |
RUN apk add openssh | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment