Created
July 23, 2023 22:50
-
-
Save jonathasborges1/0b2aa0feb3ae170468dc57041948fd76 to your computer and use it in GitHub Desktop.
mysql and phpmyadmin in docker-compose.yml
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: '3' | |
services: | |
db: | |
restart: always | |
image: mysql:5.7 | |
command: --default-authentication-plugin=mysql_native_password | |
volumes: | |
- db_data:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: admin | |
MYSQL_DATABASE: lojavirtual | |
MYSQL_USER: user | |
MYSQL_PASSWORD: 123456 | |
ports: | |
- "3306:3306" | |
phpmyadmin: | |
image: phpmyadmin/phpmyadmin | |
container_name: phpmyadmin | |
restart: always | |
ports: | |
- "8080:80" | |
environment: | |
PMA_HOST: db | |
PMA_PORT: 3306 | |
depends_on: | |
- db | |
volumes: | |
db_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment