Skip to content

Instantly share code, notes, and snippets.

@mauriballes
Created June 24, 2020 17:54
Show Gist options
  • Save mauriballes/0003f83eaa01ad81368b6f00d65706fe to your computer and use it in GitHub Desktop.
Save mauriballes/0003f83eaa01ad81368b6f00d65706fe to your computer and use it in GitHub Desktop.
Wordpress Docker Fast
version: '3'
services:
db:
image: mariadb:latest
volumes:
- data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=wordpress
- MYSQL_USER=manager
- MYSQL_PASSWORD=secret
web:
image: wordpress:latest
depends_on:
- db
volumes:
- ./target:/var/www/html
environment:
- WORDPRESS_DB_USER=manager
- WORDPRESS_DB_PASSWORD=secret
- WORDPRESS_DB_HOST=db
ports:
- 8080:80
volumes:
data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment