Skip to content

Instantly share code, notes, and snippets.

@zcstarr
Created February 16, 2016 18:47
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 zcstarr/14d960a91534ca7c8a71 to your computer and use it in GitHub Desktop.
Save zcstarr/14d960a91534ca7c8a71 to your computer and use it in GitHub Desktop.
version: '2'
services:
db:
environment:
MYSQL_DATABASE: "test"
MYSQL_USER: "test"
MYSQL_PASSWORD: "test"
MYSQL_ROOT_PASSWORD: "test"
ports:
- "3306:3306"
image: "mariadb:10.1"
web:
build: .
ports:
- "8090:8090"
- "3000:3000"
links:
- db
@MrMMorris
Copy link

db:
  environment:
    MYSQL_DATABASE: "test"
    MYSQL_USER: "test"
    MYSQL_PASSWORD: "test"
    MYSQL_ROOT_PASSWORD: "test"
  ports:
    - "3306:3306"
  image: mariadb:10.1
web:
  build: .
  command: cat /etc/hosts
  ports:
    - "8090:8090"
    - "3000:3000"
  links:
    - db

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment