Last active
December 3, 2021 08:32
-
-
Save tataue/f15a505624a8d0ada285a8ea4e254b2f to your computer and use it in GitHub Desktop.
mysql-phpmyadmin-pair
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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