dbdata:
  image: busybox
  volumes:
    - /var/lib/postgresql
  command: "true"

db:
  image: postgres:9.4
  volumes_from:
    - dbdata

web:
  build: .
  ports:
   - "3000:3000"
  volumes:
   - .:/usr/src/app
  links:
    - db