Skip to content

Instantly share code, notes, and snippets.

@arellano-gustavo
Created December 30, 2021 03:31
Show Gist options
  • Save arellano-gustavo/5980a0a8c18e30d2903187401a49374d to your computer and use it in GitHub Desktop.
Save arellano-gustavo/5980a0a8c18e30d2903187401a49374d to your computer and use it in GitHub Desktop.
Archivo docker-compose para levantar un wordpress
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