diff --git a/learning_with_texts/Dockerfile b/learning_with_texts/Dockerfile new file mode 100644 index 0000000..408e341 --- /dev/null +++ b/learning_with_texts/Dockerfile @@ -0,0 +1,22 @@ +FROM php:7.4-apache +RUN apt update; \ + apt upgrade; \ + apt-get install -y default-mysql-client; +RUN docker-php-ext-install mysqli +COPY ./lwt_html /var/www/html +## COPY ./php.ini /usr/local/etc/php +EXPOSE 80:80 + + + + + +# FROM php:5.4-apache + +# # Install all the packages that we'll need. +# RUN apt-get update && \ +# apt-get install -y php5-mysqlnd git zlib1g-dev imagemagick libjpeg-dev libpng-dev \ +# mysql-client && \ +# docker-php-ext-install zip mysql mysqli gd +# COPY ./lwt_html /var/www/html +# EXPOSE 80:80 diff --git a/learning_with_texts/docker-compose.yml b/learning_with_texts/docker-compose.yml new file mode 100644 index 0000000..e724f19 --- /dev/null +++ b/learning_with_texts/docker-compose.yml @@ -0,0 +1,30 @@ +# -*- mode: yaml, yaml-indent-offset: 2 -*- +# docker-compose up pool + +version: '3.3' + +services: + lwt: + build: "." + depends_on: + - db + links: + - "db" + volumes: + - "./lwt_html:/var/www/html" + ports: + - "0.0.0.0:8889:80" + restart: always + + db: + image: mysql:5.7 + volumes: + - db_data:/var/lib/mysql + restart: always + environment: + MYSQL_DATABASE: "lwt" + MYSQL_ROOT_PASSWORD: "root" + MYSQL_ALLOW_EMPTY_PASSWORD: "yes" + +volumes: + db_data: {}