expertiza/expertiza

View on GitHub
devops/docker/docker-compose.yml.blue_green_deployment

Summary

Maintainability
Test Coverage
version: '3'

services:
  expertiza_blue:
    image: expertiza:blue
    ports:
      - '3000:3000'
    depends_on:
      - scrubbed_db
      - redis
    links:
      - scrubbed_db
      - redis
    command: bundle exec thin start -p 3000
    environment:
      REDIS_HOST: redis

  expertiza_green:
    image: expertiza:green
    ports:
      - '3001:3001'
    depends_on:
      - scrubbed_db
      - redis
    links:
      - scrubbed_db
      - redis
    command: bundle exec thin start -p 3001
    environment:
      REDIS_HOST: redis

  scrubbed_db:
    image: mysql:5.7
    volumes:
      # https://stackoverflow.com/questions/25920029/setting-up-mysql-and-importing-dump-within-dockerfile
      - './docker/scrubbed_db:/docker-entrypoint-initdb.d'
    environment:
      MYSQL_ROOT_PASSWORD: expertiza

  redis:
    image: redis:alpine