Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Commit

Permalink
Add Docker Support for PHP 7.4.9 to All Major Desktop Platforms
Browse files Browse the repository at this point in the history
macOS, Debian, Windows
  • Loading branch information
Antonios Papadakis committed Aug 31, 2020
1 parent fbf2676 commit 70ca1a1
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
26 changes: 26 additions & 0 deletions debian/Docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: "3.8"
services:
web:
build:
context: ./php
dockerfile: Dockerfile
container_name: php74
depends_on:
- database
ports:
- "80:80"
volumes:
- "./php:/var/www/html"
database:
command: "--default-authentication-plugin=mysql_native_password"
container_name: mysql8
environment:
MYSQL_DATABASE: defaultdb
MYSQL_ROOT_PASSWORD: "rootPass"
MYSQL_USER: "dbuser"
MYSQL_PASSWORD: "dbuserpassword"
image: "mysql:8.0.21"
ports:
- "6033:3306"
restart: always

9 changes: 9 additions & 0 deletions debian/Docker/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM php:7.4.9-apache
RUN apt-get update && apt-get upgrade -y
RUN apt-get install openssl curl zlib1g-dev enchant libsodium-dev libzip-dev bzip2 libcurl4-openssl-dev libssl-dev libpng-dev libgmp-dev libxml2-dev libenchant-dev libc-client2007e-dev libc-client-dev libkrb5-dev libonig-dev libedit-dev libtidy-dev libxslt-dev libgd-dev -y
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/
RUN docker-php-ext-install bcmath calendar ctype curl enchant exif ffi ftp gd gmp iconv imap intl mbstring pcntl pdo pdo_mysql readline shmop soap sockets sodium sysvmsg sysvsem sysvshm tidy tokenizer xsl zip -j$(nproc)
RUN ls /usr/local/lib/php/extensions/no-debug-non-zts-20190902/
RUN a2enmod rewrite
EXPOSE 80
26 changes: 26 additions & 0 deletions windows/Docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: "3.8"
services:
web:
build:
context: ./php
dockerfile: Dockerfile
container_name: php74
depends_on:
- database
ports:
- "80:80"
volumes:
- "./php:/var/www/html"
database:
command: "--default-authentication-plugin=mysql_native_password"
container_name: mysql8
environment:
MYSQL_DATABASE: defaultdb
MYSQL_ROOT_PASSWORD: "rootPass"
MYSQL_USER: "dbuser"
MYSQL_PASSWORD: "dbuserpassword"
image: "mysql:8.0.21"
ports:
- "6033:3306"
restart: always

9 changes: 9 additions & 0 deletions windows/Docker/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM php:7.4.9-apache
RUN apt-get update && apt-get upgrade -y
RUN apt-get install openssl curl zlib1g-dev enchant libsodium-dev libzip-dev bzip2 libcurl4-openssl-dev libssl-dev libpng-dev libgmp-dev libxml2-dev libenchant-dev libc-client2007e-dev libc-client-dev libkrb5-dev libonig-dev libedit-dev libtidy-dev libxslt-dev libgd-dev -y
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/
RUN docker-php-ext-install bcmath calendar ctype curl enchant exif ffi ftp gd gmp iconv imap intl mbstring pcntl pdo pdo_mysql readline shmop soap sockets sodium sysvmsg sysvsem sysvshm tidy tokenizer xsl zip -j$(nproc)
RUN ls /usr/local/lib/php/extensions/no-debug-non-zts-20190902/
RUN a2enmod rewrite
EXPOSE 80

0 comments on commit 70ca1a1

Please sign in to comment.