kosmatov/sidekiq-benchmark

View on GitHub
docker-compose.yml

Summary

Maintainability
Test Coverage
version: '3.8'

x-logging: &logging
  options:
    max-size: '5k'
    max-file: '5'
    labels: "{{.Name}}"
  driver: json-file

services:
  app: &base
    image: ruby:latest
    environment: &app_env
      - BUNDLE_PATH=/app/vendor
      - REDIS_HOST=redis
    volumes:
      - .:/app:cached
      - ./vendor:/app/vendor
      - ~/.pry_history:/root/.pry_history
      - ~/.bash_history:/root/.bash_history
      - ~/.local/share/gem/credentials:/root/.local/share/gem/credentials
    links:
      - redis:redis
    logging: *logging

  redis:
    image: redis:alpine
    logging: *logging

  console:
    <<: *base
    command: bash