Skip to content

Instantly share code, notes, and snippets.

@fjorgemota

fjorgemota/docker-compose.yml Secret

Created Jan 27, 2016
Embed
What would you like to do?
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