From 1e21eb4cd9952860a9685cdcbcf1183bdb0f4dde Mon Sep 17 00:00:00 2001 From: igor-chepurnoi Date: Thu, 12 Jan 2017 15:07:45 +0200 Subject: [PATCH] added phpmyadmin to docker --- README.md | 1 + data/docker/dbadmin/Dockerfile | 3 +++ docker-compose.yml | 13 +++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 data/docker/dbadmin/Dockerfile diff --git a/README.md b/README.md index db6ed0f..214dcd5 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,7 @@ When done, you need to execute migrations in the web container by the following After this steps, you can access your app from [http://localhost](http://localhost). +> Also, you can access to phpmyadmin by the following url [http://localhost:8088/](http://localhost:8088/). TESTING ------- diff --git a/data/docker/dbadmin/Dockerfile b/data/docker/dbadmin/Dockerfile new file mode 100644 index 0000000..59fa650 --- /dev/null +++ b/data/docker/dbadmin/Dockerfile @@ -0,0 +1,3 @@ +FROM phpmyadmin/phpmyadmin + +MAINTAINER Igor Chepurnoi diff --git a/docker-compose.yml b/docker-compose.yml index 02db8bc..d7adc0e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,3 +24,16 @@ services: - db depends_on: - db + + db_admin: + build: ./data/docker/dbadmin + ports: + - "8088:80" + links: + - db + depends_on: + - db + environment: + PMA_HOST: db + PMA_USER: root + PMA_PASSWORD: secret