Skip to content

Instantly share code, notes, and snippets.

@learntoswim
Last active September 1, 2015 04:08
Show Gist options
  • Save learntoswim/fe366a9613a32942a997 to your computer and use it in GitHub Desktop.
Save learntoswim/fe366a9613a32942a997 to your computer and use it in GitHub Desktop.
wordpress:
image: wordpress
links:
- db:mysql
ports:
- 8080:80
volumes:
- .:/var/www/html
environment:
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: password
mysqldata:
image: mysql
ports:
- 3306:3306
volumes:
- /var/lib/mysql
environment:
MYSQL_USER: mysql
MYSQL_PASWORD: mysql
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress
db:
image: mysql
volumes_from:
- mysqldata
volumes:
- /var/lib/mysql:/var/lib/mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment