dvmonroe/sanity-ruby

View on GitHub
docker-compose.yml

Summary

Maintainability
Test Coverage
version: '3.9'

services:
  '2.6':
    build:
      context: .
      dockerfile: Dockerfile-2.6
    tty: true
    stdin_open: true
    volumes:
      - ./bin:/var/www/sanity-ruby/bin/
      - ./lib:/var/www/sanity-ruby/lib/
      - ./test:/var/www/sanity-ruby/test/
    container_name: sanity-ruby-2.6
    command: bash

  '2.7':
    build:
      context: .
      dockerfile: Dockerfile-2.7
    tty: true
    stdin_open: true
    volumes:
      - ./bin:/var/www/sanity-ruby/bin/
      - ./lib:/var/www/sanity-ruby/lib/
      - ./test:/var/www/sanity-ruby/test/
    container_name: sanity-ruby-2.7
    command: bash

  '3.0':
    build:
      context: .
      dockerfile: Dockerfile-3.0
    tty: true
    stdin_open: true
    volumes:
      - ./bin:/var/www/sanity-ruby/bin/
      - ./lib:/var/www/sanity-ruby/lib/
      - ./test:/var/www/sanity-ruby/test/
    container_name: sanity-ruby-3.0
    command: bash

volumes:
  bin:
  lib:
  test: