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
networks: | |
app-network: | |
services: | |
webserver: | |
container_name: PHP-webserver | |
build: | |
context: . | |
dockerfile: Dockerfile | |
volumes: | |
- .:/var/www/html |
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.4.39-apache | |
RUN mkdir -p "$PHP_INI_DIR/conf.d" | |
RUN echo "deb http://archive.debian.org/debian/ jessie main" > /etc/apt/sources.list \ | |
&& echo "deb http://archive.debian.org/debian-security jessie/updates main" >> /etc/apt/sources.list | |
RUN apt-get update -y && apt-get install -y --allow-unauthenticated zlib1g-dev libjpeg62-turbo libpng-dev libjpeg-dev | |
RUN docker-php-ext-install mysqli pdo_mysql \ | |
&& docker-php-ext-configure gd \ | |
--with-png-dir=/usr/lib/ \ | |
--with-jpeg-dir=/usr/lib/ \ | |
--with-gd \ |