johnbeynon/stash-api

View on GitHub
docker-compose.yml

Summary

Maintainability
Test Coverage
web:
  build: .
  command: 'sh -c ''bundle exec puma --config config/puma.rb config.ru'''
  working_dir: /app/user
  env_file: .env
  environment:
    PORT: 8080
    DATABASE_URL: 'postgres://postgres:@herokuPostgresql:5432/postgres'
    REDIS_URL: 'redis://herokuRedis:6379'
  ports:
    - '8080:8080'
  links:
    - herokuPostgresql
    - herokuRedis
worker:
  build: .
  command: 'sh -c ''bundle exec sidekiq -r ./sidekiq.rb'''
  working_dir: /app/user
  environment:
    DATABASE_URL: 'postgres://postgres:@herokuPostgresql:5432/postgres'
    REDIS_URL: 'redis://herokuRedis:6379'
  links:
    - herokuPostgresql
    - herokuRedis
herokuPostgresql:
  image: postgres
herokuRedis:
  image: redis