Skip to content

Commit a0d9f81

Browse files
committed
added the files needed to build the docker image
1 parent f0364dc commit a0d9f81

File tree

8 files changed

+1911
-1
lines changed

8 files changed

+1911
-1
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
./Docker/*
2+
./docker-files/*
3+
4+
*Dockerfile

.env-example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
APP_PORT=8082
2+
APP_PORT_SSL=8043

README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
1-
# php5.6-apache-docker-example
1+
# PHP 5.6 & Apache Dockerfile Example
2+
23
A base PHP 5.6 Apache 2 image for demonstrating legacy projects.
4+
5+
An older version of ***PHP*** that some older codebase sites would require as an environment to run in.
6+
7+
Other Packages Included:
8+
9+
- Node
10+
- Composer
11+
- libxml2-dev
12+
- libzip-dev
13+
- libyaml-dev
14+
- zip
15+
- git
16+
- nodejs
17+
- default-mysql-client
18+
- vim
19+
- npm i npm@latest -g
20+
- yaml-1.3.0
21+
22+
PHP Extensions:
23+
24+
- gettext
25+
- mysqli
26+
- pdo_mysql
27+
- zip
28+
- yaml

docker-compose.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: '3.4'
2+
3+
services:
4+
web-server:
5+
build:
6+
context: .
7+
dockerfile: php-8-2-apache.Dockerfile
8+
labels:
9+
ewc.name: "Web Server"
10+
ewc.description: "PHP & Apache Web Server"
11+
ewc.php.version: "8.2"
12+
ewc.label-with-empty-value: ""
13+
image: ewc2020/web:php-8-2-apache
14+
container_name: web-server
15+
ports:
16+
- ${APP_PORT}:80
17+
- ${APP_PORT_SSL}:443
18+
volumes:
19+
- ./public_html:/var/www/html
20+
- ./docker-files/php/local.ini:/usr/local/etc/php.ini
21+
networks:
22+
- webapp_network
23+
24+
networks:
25+
webapp_network:
26+

0 commit comments

Comments
 (0)