web:
  build: ./app
  volumes:
    - "./app:/src/app"
  ports:
    - "3030:3000"
  links:
    - "db:redis"
  command: nodemon -L app/bin/www
  cpu_shares: 512

nginx:
  restart: always
  build: ./nginx/
  ports:
    - "80:80"
  volumes:
    - /www/public
  volumes_from:
    - web
  links:
    - web:web

db:
  image: redis
  ports:
    - "6379:6379"
  cpu_quota: 10000
  mem_limit: 1000000000
  cpuset: 1

no-ports:
  image: redis