This repository has been archived by the owner on May 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Docker Support for PHP 7.4.9 to All Major Desktop Platforms
macOS, Debian, Windows
- Loading branch information
Antonios Papadakis
committed
Aug 31, 2020
1 parent
fbf2676
commit 70ca1a1
Showing
4 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
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
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 | ||
|
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
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 |
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
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 | ||
|
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
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 |