Merge pull request #245 from appleboy/patch-1

Support phpMyAdmin container.
This commit is contained in:
Mahmoud Zalt 2016-08-22 22:32:52 +03:00 committed by GitHub
commit 314034255a
2 changed files with 31 additions and 1 deletions

View File

@ -209,6 +209,25 @@ services:
links: links:
- php-fpm - php-fpm
### phpMyAdmin Container ##################################
phpmyadmin:
build: ./phpmyadmin
environment:
PMA_ARBITRARY: 1
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: root
volumes_from:
- volumes_data
ports:
- "8000:80"
links:
# for mysql container
- "mysql:db"
# for mariadb container
# - "mariadb:db"
### Laravel Application Code Container ###################### ### Laravel Application Code Container ######################
volumes_source: volumes_source:
@ -226,10 +245,10 @@ services:
volumes: volumes:
- ./data/mysql:/var/lib/mysql - ./data/mysql:/var/lib/mysql
- ./data/postgres:/var/lib/postgres - ./data/postgres:/var/lib/postgres
- ./data/mariadb:/var/lib/mariadb
- ./data/memcached:/var/lib/memcached - ./data/memcached:/var/lib/memcached
- ./data/redis:/data - ./data/redis:/data
- ./data/neo4j:/var/lib/neo4j/data - ./data/neo4j:/var/lib/neo4j/data
- ./data/mongo:/data/db - ./data/mongo:/data/db
- ./data/sessions:/sessions
### Add more Containers below ############################### ### Add more Containers below ###############################

11
phpmyadmin/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM phpmyadmin/phpmyadmin
MAINTAINER Bo-Yi Wu <appleboy.tw@gmail.com>
# Add volume for sessions to allow session persistence
VOLUME /sessions
# We expose phpMyAdmin on port 80
EXPOSE 80
ENTRYPOINT [ "/run.sh" ]