image: redis ports: - "6379:6379" sidekiq: build: . volumes: - .:/myapp links: - db - redis command: bundle exec sidekiq web: build: . command: bin/rails server --port 3000 --binding 0.0.0.0 ports: - "3000:3000" links: - db - redis volumes: - .:/myapp # This tells the web container to mount the `bundle` images' # # /bundle volume to the `web` containers /bundle path. volumes_from: - bundle bundle: image: busybox volumes: - /bundle docker-compose.yml