Last active
January 20, 2025 11:39
-
-
Save matheustkn/36090cd8d0b8a24619a538e1ac6e009e to your computer and use it in GitHub Desktop.
MySQL with phpmyadmin for docker
This file contains hidden or 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
| services: | |
| db: | |
| image: mysql | |
| container_name: mysql-db | |
| environment: | |
| MYSQL_ALLOW_EMPTY_PASSWORD: 1 | |
| ports: | |
| - "3306:3306" | |
| volumes: | |
| - db_data:/var/lib/mysql | |
| networks: | |
| - phpmyadmin-network | |
| phpmyadmin: | |
| image: phpmyadmin/phpmyadmin | |
| container_name: phpmyadmin | |
| environment: | |
| PMA_HOST: db | |
| PMA_PORT: 3306 | |
| MYSQL_ALLOW_EMPTY_PASSWORD: 1 | |
| ports: | |
| - "8080:80" | |
| networks: | |
| - phpmyadmin-network | |
| depends_on: | |
| - db | |
| networks: | |
| phpmyadmin-network: | |
| driver: bridge | |
| volumes: | |
| db_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment