From 6c09f36f9430021c1e5b0b999d45cbe960ad14b2 Mon Sep 17 00:00:00 2001 From: Ahmed Jamal <34508885+a-j-n@users.noreply.github.com> Date: Thu, 14 Jun 2018 04:47:32 +0200 Subject: [PATCH] Add files via upload docker --- docker-compose.yml | 57 ++++++++++++++++++++++++++++++++++++++++++++++ env.exapmle | 4 ++++ 2 files changed, 61 insertions(+) create mode 100644 docker-compose.yml create mode 100644 env.exapmle diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 000000000..220ff884d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,57 @@ +version: '3.2' + +services: + app: + image: meupatrocinio/apache2.4-php5.4-ssl-nr-rg + container_name: web + volumes: + - .:/var/www/html + ports: + - 8080:80 + env_file: .env + depends_on: + - mysql + + + mysql: + image: mysql:5.7 + restart: always + env_file: .env + volumes: + - ./mysql/data:/var/lib/mysql + + phpmyadmin: + image: phpmyadmin/phpmyadmin + container_name: phpmyadmin + env_file: .env + restart: always + ports: + - 8081:80 +#version: '3.2' +# +#services: +# app : +# build: +# context: . +# dockerfile: Dockerfile +# working_dir: /var/www +# volumes: +# - ./:/var/www/html +# ports: +# - 8080:80 +# +# mysql: +# image: mysql +# restart: always +# env_file: .env +# volumes: +# - ./mysql/init:/docker-entrypoint-initdb.d:ro +# - ./mysql/data:/var/lib/mysql +# +# phpmyadmin: +# image: phpmyadmin/phpmyadmin +# container_name: phpmyadmin +# env_file: .env +# restart: always +# ports: +# - 8081:80 \ No newline at end of file diff --git a/env.exapmle b/env.exapmle new file mode 100644 index 000000000..3d3b8d243 --- /dev/null +++ b/env.exapmle @@ -0,0 +1,4 @@ +MYSQL_ROOT_PASSWORD=Php@01010 +MYSQL_DATABASE=hr +PMA_ARBITRARY=1 +