Skip to content

Instantly share code, notes, and snippets.

@jremi
Created March 9, 2019 04:56
Show Gist options
  • Save jremi/52724fe90417efa0691f2d0f88431236 to your computer and use it in GitHub Desktop.
Save jremi/52724fe90417efa0691f2d0f88431236 to your computer and use it in GitHub Desktop.
Docker Compose config file (docker-compose.yml) for Wordpress + MySQL (MariaDB)
version: '2'
services:
wordpress:
image: wordpress:latest
ports:
- 8080:80
volumes:
- ./wp-content:/var/www/html/wp-content
links:
- mysql
environment:
WORDPRESS_DB_PASSWORD: myPassword123
mysql:
image: mariadb:latest
ports:
- 8081:3306
volumes:
- ./mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: myPassword123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment