Skip to content

Instantly share code, notes, and snippets.

@silverbux
Created November 11, 2015 00:26
Show Gist options
  • Save silverbux/6595795cedc655f8165d to your computer and use it in GitHub Desktop.
Save silverbux/6595795cedc655f8165d to your computer and use it in GitHub Desktop.
web:
build: ./node
volumes:
- "app:/src/app"
expose:
- "3000"
links:
- "db:redis"
- "mongodb"
command: nodemon -L app/server/server.js
nginx:
restart: always
build: ./nginx/
ports:
- "80:80"
volumes:
- /www/public
volumes_from:
- web
links:
- web:web
db:
image: redis
mongodb:
build: ./mongodb/
ports:
- "27017:27017"
@pongstr
Copy link

pongstr commented Nov 11, 2015

web:
  image: coder:patch-2
  ports:
    - '5000:5000'
  links:
    - redis
    - mongodb
  command: nodemon -L server/server.js

redis:
  image: redis:3.0.4
  ports:
    - '16379:6379'

mongodb:
  image: mongo:3.0.6
  ports:
    - '27017:27017'

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