Last active
September 19, 2022 14:28
-
-
Save MervinPraison/ab9bf3e48a8a0951df66c9d98aa7365f to your computer and use it in GitHub Desktop.
Docker Stack WordPress phpmyadmin mysql
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
| version: '2' | |
| services: | |
| db: | |
| image: mysql:5.7 | |
| volumes: | |
| - db_data:/var/lib/mysql | |
| restart: always | |
| environment: | |
| MYSQL_ROOT_PASSWORD: wordpress | |
| MYSQL_DATABASE: wordpress | |
| MYSQL_USER: wordpress | |
| MYSQL_PASSWORD: wordpress | |
| phpmyadmin: | |
| image: corbinu/docker-phpmyadmin | |
| ports: | |
| - 8181:80 | |
| restart: always | |
| environment: | |
| MYSQL_ROOT_PASSWORD: wordpress | |
| MYSQL_USER: wordpress | |
| MYSQL_USERNAME: wordpress | |
| MYSQL_PASSWORD: wordpress | |
| MYSQL_PORT_3306_TCP_ADDR: db | |
| PMA_USERNAME: wordpress | |
| PMA_PASSWORD: wordpress | |
| wordpress: | |
| image: wordpress:latest | |
| ports: | |
| - 80 | |
| restart: always | |
| environment: | |
| WORDPRESS_DB_HOST: db:3306 | |
| WORDPRESS_DB_USER: wordpress | |
| WORDPRESS_DB_PASSWORD: wordpress | |
| volumes: | |
| db_data: |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/questions/33376438/phpmyadmin-connection-for-controluser-as-defined-in-your-configuration-failed
https://stackoverflow.com/questions/50553958/cant-get-access-to-db-via-phpmyadmin-docker
https://github.com/corbinu/docker-phpmyadmin/blob/master/sources/config.inc.php#L38
https://github.com/portainer/templates/blob/master/stacks/wordpress/docker-stack.yml