Skip to content

Instantly share code, notes, and snippets.

@hugodias
Last active October 17, 2017 17:31
Show Gist options
  • Save hugodias/429a3ac666e08bbc133ca58ef0d8e06f to your computer and use it in GitHub Desktop.
Save hugodias/429a3ac666e08bbc133ca58ef0d8e06f to your computer and use it in GitHub Desktop.
Docker compose file for wordpress development
version: "2"
services:
my-wpdb:
image: mariadb
ports:
- "8081:3306"
environment:
MYSQL_ROOT_PASSWORD: ChangeMeIfYouWant
volumes:
- mariadb:/var/lib/mysql
my-wp:
image: wordpress
volumes:
- ./:/var/www/html
ports:
- "8080:80"
links:
- my-wpdb:mysql
environment:
WORDPRESS_DB_PASSWORD: ChangeMeIfYouWant
tty: true
stdin_open: true
volumes:
mariadb:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment