Skip to content

Instantly share code, notes, and snippets.

@whoisryosuke
Created April 9, 2018 18:02
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 whoisryosuke/ef45400794db587b5eec1063fcdc0b84 to your computer and use it in GitHub Desktop.
Save whoisryosuke/ef45400794db587b5eec1063fcdc0b84 to your computer and use it in GitHub Desktop.
Docker Compose file for basic Wordpress projects
my-wpdb:
image: mariadb
ports:
- "8081:3306"
environment:
MYSQL_ROOT_PASSWORD: root
my-wp:
image: wordpress
volumes:
- ./:/var/www/html
ports:
- "8080:80"
links:
- my-wpdb:mysql
environment:
WORDPRESS_DB_PASSWORD: root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment