From 65382fa1ce616f6fbcd8e4fcffeb6171590965ac Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Thu, 12 May 2016 23:28:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20phpmyadmin=20=D0=B2=20docker-compose?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 12 ++++++++++++ docker/phpmyadmin/Dockerfile | 5 +++++ docker/phpmyadmin/config.local.php | 4 ++++ 3 files changed, 21 insertions(+) create mode 100644 docker/phpmyadmin/Dockerfile create mode 100644 docker/phpmyadmin/config.local.php diff --git a/docker-compose.yml b/docker-compose.yml index 6f7de65..3792cb2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -60,3 +60,15 @@ services: build: ./docker/rabbitmq ports: - "15672:15672" + + phpmyadmin: + build: ./docker/phpmyadmin + environment: + - PMA_ARBITRARY=1 + - PMA_USER=root + - PMA_PASSWORD= + restart: always + ports: + - "8181:80" + links: + - db diff --git a/docker/phpmyadmin/Dockerfile b/docker/phpmyadmin/Dockerfile new file mode 100644 index 0000000..c054f47 --- /dev/null +++ b/docker/phpmyadmin/Dockerfile @@ -0,0 +1,5 @@ +FROM phpmyadmin/phpmyadmin + +RUN printf "\n\nrequire('./config.local.php');\n" >> /www/config.inc.php + +COPY config.local.php /www/ diff --git a/docker/phpmyadmin/config.local.php b/docker/phpmyadmin/config.local.php new file mode 100644 index 0000000..4413776 --- /dev/null +++ b/docker/phpmyadmin/config.local.php @@ -0,0 +1,4 @@ +