-
-
Save arcanoix/459782037752d2f87d6e06ddf717291e to your computer and use it in GitHub Desktop.
Docker-compose para wordpress con 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
## 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