IT61/it61-rails

View on GitHub
docker/docker-compose.yml

Summary

Maintainability
Test Coverage
version: "2"
services:
  # Main application container
  app:
    build:
      context: ../.
      dockerfile: ./docker/app/Dockerfile
    command: ./docker/bin/up
    volumes:
      - ../.:/app
    volumes_from:
      - gems
    ports:
      - "3000:3000"
    environment:
      - DATABASE_URL=postgres://postgres@db:5432/it61
      # Uncomment if you REALLY know what this variable stands for and you REALLY need this
      # - BUNDLE_JOBS=6
    depends_on:
      - db

  # Mounted folder for Gemfile gems container
  gems:
    image: busybox
    volumes:
      - /gems

  # Container with database
  db:
    image: postgres
    ports:
      - "6543:5432"