commit 2f39e6d2c1cbc2ab79a78674a83ec3184eb23d9b Author: Jonas Kattendick Date: Fri Mar 3 16:07:27 2023 +0100 initial commit 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 @@ +