Skip to content

Commit 6cfc435

Browse files
committed
first commit
1 parent 3b79920 commit 6cfc435

File tree

11 files changed

+141
-0
lines changed

11 files changed

+141
-0
lines changed

docker-compose.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
version: '3'
2+
services:
3+
php80:
4+
container_name: php80
5+
build:
6+
context: .
7+
dockerfile: ./docker-files/PHP80.Dockerfile
8+
ports:
9+
- "8080:80"
10+
volumes:
11+
- ./www/php80:/var/www/html/
12+
13+
php82:
14+
container_name: php82
15+
build:
16+
context: .
17+
dockerfile: ./docker-files/PHP82.Dockerfile
18+
ports:
19+
- "8082:80"
20+
volumes:
21+
- ./www/php82:/var/www/html/
22+
23+
php74:
24+
container_name: php74
25+
build:
26+
context: .
27+
dockerfile: ./docker-files/PHP74.Dockerfile
28+
ports:
29+
- "8074:80"
30+
volumes:
31+
- ./www/php74:/var/www/html/
32+
33+
mysql:
34+
container_name: mysql
35+
image: mariadb:latest
36+
environment:
37+
MYSQL_ROOT_PASSWORD: root
38+
restart: always
39+
volumes:
40+
- ./mysql-data:/var/lib/mysql
41+
ports:
42+
- 3306:3306
43+
44+
phpmyadmin:
45+
container_name: phpmyadmin
46+
image: phpmyadmin
47+
restart: always
48+
ports:
49+
- 9000:80
50+
environment:
51+
PMA_HOST: mysql
52+
PMA_USER: root
53+
PMA_PASSWORD: root
54+
UPLOAD_LIMIT: 500M
55+
56+
adminer:
57+
container_name: adminer
58+
image: adminer
59+
restart: always
60+
ports:
61+
- 9001:8080

docker-files/PHP74.Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM php:7.4-apache
2+
3+
RUN apt update && apt install -y git
4+
RUN apt install wget && wget https://getcomposer.org/download/latest-stable/composer.phar && chmod 755 composer.phar
5+
RUN mv composer.phar /usr/local/bin/composer
6+
7+
RUN apt-get install -y \
8+
git \
9+
curl \
10+
libpng-dev \
11+
libonig-dev \
12+
libxml2-dev \
13+
zip \
14+
unzip
15+
16+
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
17+
18+
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd
19+
20+
RUN a2enmod rewrite

docker-files/PHP80.Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM php:8.0-apache
2+
3+
RUN apt update && apt install -y git
4+
RUN apt install wget && wget https://getcomposer.org/download/latest-stable/composer.phar && chmod 755 composer.phar
5+
RUN mv composer.phar /usr/local/bin/composer
6+
7+
RUN apt-get install -y \
8+
git \
9+
curl \
10+
libpng-dev \
11+
libonig-dev \
12+
libxml2-dev \
13+
zip \
14+
unzip
15+
16+
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
17+
18+
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd
19+
20+
RUN a2enmod rewrite

docker-files/PHP82.Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM php:8.2-apache
2+
3+
RUN apt update && apt install -y git
4+
RUN apt install wget && wget https://getcomposer.org/download/latest-stable/composer.phar && chmod 755 composer.phar
5+
RUN mv composer.phar /usr/local/bin/composer
6+
7+
RUN apt-get install -y \
8+
git \
9+
curl \
10+
libpng-dev \
11+
libonig-dev \
12+
libxml2-dev \
13+
zip \
14+
unzip
15+
16+
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
17+
18+
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd
19+
20+
RUN a2enmod rewrite

mysql-data/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

www/php74/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!.gitignore
3+
!index.php

www/php74/index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
phpinfo();

www/php80/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!.gitignore
3+
!index.php

www/php80/index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
phpinfo();

www/php82/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!.gitignore
3+
!index.php

www/php82/index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
phpinfo();

0 commit comments

Comments
 (0)