Skip to content

Instantly share code, notes, and snippets.

@tonywangcn
Created February 24, 2017 17:02
Show Gist options
  • Save tonywangcn/3be7d801243044913022816b4193b41b to your computer and use it in GitHub Desktop.
Save tonywangcn/3be7d801243044913022816b4193b41b to your computer and use it in GitHub Desktop.
version: '2'
services:
rabbit:
hostname: rabbit
image: rabbitmq:latest
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=mypass
ports:
- "5672:5672"
worker:
build:
context: .
dockerfile: dockerfile
volumes:
- .:/app
links:
- rabbit
depends_on:
- rabbit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment