Skip to content

Instantly share code, notes, and snippets.

@odadoda
Created September 29, 2017 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odadoda/417f3bc9c153cef250f0220e9b72a438 to your computer and use it in GitHub Desktop.
Save odadoda/417f3bc9c153cef250f0220e9b72a438 to your computer and use it in GitHub Desktop.
Wordpress and mariadb docker compose
version: "3.1"
services:
wordpress:
image: wordpress
ports:
- 8080:80
environment:
WORDPRESS_DB_PASSWORD: password
links:
- mdb:mysql
volumes:
- ./html:/var/www/html
mdb:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: password
volumes:
- ./data:/var/lib/mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment