Skip to content

Instantly share code, notes, and snippets.

@winggundamth
Created February 23, 2016 18:09
Show Gist options
  • Save winggundamth/a8681b3562fa3118cda1 to your computer and use it in GitHub Desktop.
Save winggundamth/a8681b3562fa3118cda1 to your computer and use it in GitHub Desktop.
Sample how to do one host bridge networking with docker compose
version: '2'
services:
db:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=mypass
wp:
image: wordpress
environment:
- WORDPRESS_DB_HOST=db
- WORDPRESS_DB_PASSWORD=mypass
ports:
- 80:80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment