version: '2'
services:
  web:
    build: .
    command: bundle exec puma -C config/puma.rb
    volumes:
      - .:/app
    volumes_from:
      - bundle
    ports:
      - "127.0.0.1:3000:3000"
    depends_on:
      - operationcode-psql
      - redis
    env_file:
      - .env

  bundle:
    image: operationcodebackend_web
    command: echo bundle data container
    volumes:
      - /bundle

  operationcode-psql:
    image: postgres
    env_file:
      - .env

  redis:
    image: redis:latest

  sidekiq:
    image: operationcodebackend_web
    command: sidekiq -C config/sidekiq.yml.erb
    volumes:
      - .:/app
    volumes_from:
      - bundle
    depends_on:
      - operationcode-psql
      - redis
    env_file:
      - .env


version: '2'
services:
  web:
    build: .
    command: bundle exec puma -C config/puma.rb
    volumes:
      - .:/app
    volumes_from:
      - bundle
    ports:
      - "127.0.0.1:3000:3000"
    depends_on:
      - operationcode-psql
      - redis
    env_file:
      - .env

  bundle:
    image: operationcodebackend_web
    command: echo bundle data container
    volumes:
      - /bundle

  operationcode-psql:
    image: postgres
    env_file:
      - .env

  redis:
    image: redis:latest

  sidekiq:
    image: operationcodebackend_web
    command: bundle exec sidekiq -C config/sidekiq.yml.erb
    volumes:
      - .:/app
    volumes_from:
      - bundle
    depends_on:
      - operationcode-psql
      - redis
    env_file:
      - .env


Add bundle prefix to sidekiq
Add bundle prefix to sidekiq

Resolves a "not found" error when running `make test` by adding the
`bundle exec` prefix
