version: '2' services: web: build: context: . dockerfile: Dockerfile command: bash -c "rm -f /app/tmp/pids/server.pid && bundle exec rails db:migrate && bundle exec rails assets:precompile && bundle exec rails s -p 3000 -b '0.0.0.0'" volumes: - .:/app ports: - 3000:3000 depends_on: - db - s3 links: - s3:s3.localhost db: image: postgres volumes: - ./db/init.sql:/docker-entrypoint-initdb.d/10-init.sql s3: image: lphoward/fake-s3 ports: - 4569:4569 expose: - "4569" lambda: image: lambci/lambda:nodejs6.10 volumes: - ./scripts/lambda:/app depends_on: - db - s3 links: - s3:s3.localhost