version: "3" services: web: build: . ports: - "3000:3000" depends_on: - db - redis environment: RAILS_ENV: development DATABASE_URL: postgres://postgres:mysecretpassword@db:5432/postgres YARN_INTEGRITY_ENABLED: "false" volumes: - .:/usr/src/app command: bundle exec rails server -b 0.0.0.0 -p 3000 jobs: build: . command: rails jobs:work depends_on: - db environment: RAILS_ENV: development DATABASE_URL: postgres://postgres:mysecretpassword@db:5432/postgres webpacker: build: . command: ./bin/webpack-dev-server db: image: postgres:${POSTGRES_VERSION:-9.6.15-alpine} ports: - "5432:5432" redis: image: "redis" ports: - "6379:6379"