add docker-compose configuration file

This commit is contained in:
Sebastian Mendel
2015-12-04 13:02:28 +01:00
parent cd7cc22fd8
commit 4b59242db8
2 changed files with 21 additions and 0 deletions
+13
View File
@@ -24,3 +24,16 @@ You can use arbitrary servers by adding ENV variable PMA_ARBITRARY=1 to the star
```
docker run --name myadmin -d --link mysql_db_server:db -p 8080:8080 -e PMA_ARBITRARY=1 phpmyadmin/phpmyadmin
```
## Usage with docker-compose and arbitrary server
This will run phpMyAdmin with arbitrary server - allowing you to specify MySQL/MariaDB
server on login page.
Using the docker-compose.yml from https://github.com/phpmyadmin/docker
```
docker-compose up -d
```
than as usual, open http://localhost:8080 and enjoy your happy MySQL administration.
+8
View File
@@ -0,0 +1,8 @@
phpmyadmin:
image: phpmyadmin:testing
container_name: myadmin
environment:
- PMA_ARBITRARY=1
restart: always
ports:
- 8080:8080