From 2f39e6d2c1cbc2ab79a78674a83ec3184eb23d9b Mon Sep 17 00:00:00 2001 From: Jonas Kattendick Date: Fri, 3 Mar 2023 16:07:27 +0100 Subject: [PATCH] initial commit --- Dockerfile | 4 ++++ README.md | 5 +++++ docker-compose.yml | 32 ++++++++++++++++++++++++++++++++ html/index.php | 3 +++ 4 files changed, 44 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 docker-compose.yml create mode 100644 html/index.php diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4274d0a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM php:8.2-apache + +RUN docker-php-ext-install mysqli pdo pdo_mysql && \ + docker-php-ext-enable pdo_mysql diff --git a/README.md b/README.md new file mode 100644 index 0000000..8563c2e --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# README + +1. Buy some milk +2. Coffee +3. More milk diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..75125a4 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,32 @@ +version: '3' + +name: praktikum + +services: + web: + image: rkcsd/praktikum-php-apache + build: + context: . + dockerfile: Dockerfile + ports: + - 8081:80 + volumes: + - ./html:/var/www/html + db: + image: mariadb:10.2 + volumes: + - db-data:/var/lib/mysql + environment: + MYSQL_DATABASE: homestead + MYSQL_USER: homestead + MYSQL_PASSWORD: secret + MYSQL_ROOT_PASSWORD: secret + ports: + - 33061:3306 + phpmyadmin: + image: phpmyadmin/phpmyadmin + ports: + - 8082:80 + +volumes: + db-data: diff --git a/html/index.php b/html/index.php new file mode 100644 index 0000000..b534f6d --- /dev/null +++ b/html/index.php @@ -0,0 +1,3 @@ +