Strund3r/ECS_test

View on GitHub
docker-compose.yml

Summary

Maintainability
Test Coverage
mongo:
  image: mongo
  cpu_shares: 10
  ports:
    - "27017:27017"
  mem_limit: 260833280
redis:
  image: redis
  cpu_shares: 10
  volumes:
    - /app/redis.conf:/usr/local/etc/redis/redis.conf
  ports:
    - "6379:6379"
  mem_limit: 260833280
web:
  image: strund3r/ecs
  cpu_shares: 25
  mem_limit: 260833280
  ports:
    - "80:3000"
  links:
    - redis
    - mongo
worker:
  image: strund3r/ecs
  command: bundle exec sidekiq
  cpu_shares: 25
  links:
    - redis
    - mongo
  mem_limit: 260833280
portainer:
  image: portainer/portainer:latest
  ports:
    - "9000:9000"
  volumes:
    - /var/run/docker.sock:/var/run/docker.sock
ngrok:
  image: strund3r/ngrok-localhost
  ports:
    - "4040:4040"
  environment:
    NGROK_REGION: us
    NGROK_HOST: web
    NGROK_PORT: 3000
  links:
    - web