-
-
Save wedwin53/1fc461ce61ed09bb4a1ca2d1985e79a9 to your computer and use it in GitHub Desktop.
Docker-compose para wordpress con mysql
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 para correr wordpress con una base de datos en mysql | |
## by PeladoNerd https://youtu.be/eoFxMaeB9H4 | |
version: '3.1' | |
services: | |
wordpress: | |
image: wordpress:php7.1-apache | |
ports: | |
- 8080:80 | |
environment: | |
WORDPRESS_DB_HOST: mysql | |
WORDPRESS_DB_USER: root | |
WORDPRESS_DB_PASSWORD: root | |
WORDPRESS_DB_NAME: wordpress | |
links: | |
- mysql:mysql | |
mysql: | |
image: mysql:8.0.13 | |
command: --default-authentication-plugin=mysql_native_password | |
environment: | |
MYSQL_DATABASE: wordpress | |
MYSQL_ROOT_PASSWORD: root | |
volumes: | |
- ~/docker/mysql-data:/var/lib/mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment