Skip to content

Commit 7354ef2

Browse files
committed
add phpmyadmin in docker-compose
1 parent c321061 commit 7354ef2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docker-compose.yml

+18
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,24 @@ services:
6565
- ./config/composer/composer.lock:/var/www/index/composer.lock
6666

6767

68+
index-phpmyadmin:
69+
container_name: index-phpmyadmin
70+
depends_on:
71+
- index-db
72+
environment:
73+
MYSQL_ROOT_PASSWORD: root
74+
PMA_HOST: index-db
75+
PMA_PORT: 3306
76+
# https://hub.docker.com/_/phpmyadmin
77+
image: phpmyadmin
78+
networks:
79+
- index-backend
80+
ports:
81+
- '8003:80'
82+
volumes:
83+
# Apache2 web server configuration
84+
- ./config/phpmyadmin-sites-available:/etc/apache2/sites-available:ro
85+
6886

6987
index-db:
7088
container_name: index-db

0 commit comments

Comments
 (0)