Skip to content

Instantly share code, notes, and snippets.

@fjorgemota
Created January 27, 2016 02:51
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 fjorgemota/74f725830cd03efb6436 to your computer and use it in GitHub Desktop.
Save fjorgemota/74f725830cd03efb6436 to your computer and use it in GitHub Desktop.
db:
image: mysql
restart: always
expose:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
wordpress:
image: wordpress
restart: always
links:
- db:mysql
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment