db:
  environment:
    MYSQL_ROOT_PASSWORD: root
  hostname: exitus-mysql
  image: centurylink/mysql
  ports:
    - 3306
  volumes:
    - .data:/var/lib/mysql

web:
  build: docker/development_image/
  command: cd /app/test/carnival-sample-application && bundle exec rails s --pid=/tmp/server.pid
  environment:
    BUNDLE_APP_CONFIG: /app/.bundle
    VIRTUAL_HOST: web.carnival.dev
  links:
    - db
  ports:
    - 3000
  volumes:
    - .:/app
  working_dir: /app

db:
  environment:
    MYSQL_ROOT_PASSWORD: root
  hostname: exitus-mysql
  image: centurylink/mysql
  ports:
    - 3306
  volumes:
    - .data:/var/lib/mysql

web:
  build: docker/development_image/
  command: cd /app/spec/dummy/ && bundle exec rails s --pid=/tmp/server.pid
  environment:
    BUNDLE_APP_CONFIG: /app/.bundle
    VIRTUAL_HOST: web.carnival.dev
  links:
    - db
  ports:
    - 3000
  volumes:
    - .:/app
  working_dir: /app

Fix docker run command on web container
Fix docker run command on web container
