lfzawacki/musical-artifacts

View on GitHub
docker-compose.yml

Summary

Maintainability
Test Coverage
version: '3'
services:
  db:
    image: postgres
    volumes:
      - db_data:/var/lib/postgresql/data
      - ./docker:/docker-entrypoint-initdb.d
    environment:
      POSTGRES_PASSWORD: musical_artifacts
      POSTGRES_USER: postgres
    ports:
      - "5432:5432"
  redis:
    image: redis
    ports:
      - "6379:6379"
  web:
    build:
      context: .
      dockerfile: Dockerfile
    volumes:
      - .:/app
      - gem_cache:/usr/local/bundle/gems
    ports:
      - "3000:3000"
    environment:
      RAILS_ENV: development
      DEVISE_SECRET_KEY: 123456789
      REDIS_HOST: redis:6379
    depends_on:
      - db
      - redis

volumes:
  gem_cache:
  db_data: