Created
December 30, 2021 03:31
-
-
Save arellano-gustavo/5980a0a8c18e30d2903187401a49374d to your computer and use it in GitHub Desktop.
Archivo docker-compose para levantar un wordpress
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.7' | |
services: | |
db: | |
image: mysql:8.0.19 | |
command: '--default-authentication-plugin=mysql_native_password' | |
volumes: | |
- /this/is/the/path/wordpress/data:/var/lib/mysql | |
restart: always | |
environment: | |
- MYSQL_ROOT_PASSWORD=somewordpress | |
- MYSQL_DATABASE=wordpress | |
- MYSQL_USER=wordpress | |
- MYSQL_PASSWORD=wordpress | |
expose: | |
- 3306 | |
- 33060 | |
wordpress: | |
image: wordpress:latest | |
ports: | |
- 80:80 | |
restart: always | |
environment: | |
- WORDPRESS_DB_HOST=db | |
- WORDPRESS_DB_USER=wordpress | |
- WORDPRESS_DB_PASSWORD=wordpress | |
- WORDPRESS_DB_NAME=wordpress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment