db:
  image: postgres
web:
  build: .
  command: bundle exec rails s -p 3000 -b '0.0.0.0'
  ports:
    - "3000:3000"
  links:
    - db
  env_file: .env


db:
  image: postgres
web:
  build: .
  command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
  ports:
    - "3000:3000"
  links:
    - db
  env_file: .env


Fix pidfile error when docker container is killed
Fix pidfile error when docker container is killed
