Reference repo containing phpMyAdmin & MySQL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
606 B

version: '3.7'
services:
mysql:
image: mysql
restart: always
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 'true'
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
networks:
- db_net
volumes:
- ./mysql:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
depends_on:
- mysql
restart: always
environment:
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
PMA_HOST: 'mysql:3306'
networks:
- db_net
ports:
- 8080:80
networks:
db_net: