Skip to content

Instantly share code, notes, and snippets.

@tataue
Last active December 3, 2021 08:32
Show Gist options
  • Save tataue/f15a505624a8d0ada285a8ea4e254b2f to your computer and use it in GitHub Desktop.
Save tataue/f15a505624a8d0ada285a8ea4e254b2f to your computer and use it in GitHub Desktop.
mysql-phpmyadmin-pair
version: "2.0"
services:
mysql:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: H0Z75M0maZV0Y8pL
ports:
- 8003:3306
phpmyadmin:
depends_on:
- "mysql"
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: mysql
MYSQL_ROOT_PASSWORD: H0Z75M0maZV0Y8pL
ports:
- 8002:80
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.31.1.0/24
docker-compose -p mysql down
docker-compose -p mysql up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment