diff --git a/docker-compose.yml b/docker-compose.yml index 29348e6..a15a005 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -209,6 +209,25 @@ services: links: - 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 ###################### volumes_source: @@ -226,10 +245,10 @@ services: volumes: - ./data/mysql:/var/lib/mysql - ./data/postgres:/var/lib/postgres - - ./data/mariadb:/var/lib/mariadb - ./data/memcached:/var/lib/memcached - ./data/redis:/data - ./data/neo4j:/var/lib/neo4j/data - ./data/mongo:/data/db + - ./data/sessions:/sessions ### Add more Containers below ############################### diff --git a/phpmyadmin/Dockerfile b/phpmyadmin/Dockerfile new file mode 100644 index 0000000..87cb30b --- /dev/null +++ b/phpmyadmin/Dockerfile @@ -0,0 +1,11 @@ +FROM phpmyadmin/phpmyadmin + +MAINTAINER Bo-Yi Wu + +# Add volume for sessions to allow session persistence +VOLUME /sessions + +# We expose phpMyAdmin on port 80 +EXPOSE 80 + +ENTRYPOINT [ "/run.sh" ]