greenlight/docker-compose.yml

25 lines
436 B
YAML

version: '2'
services:
web:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- '80:80'
volumes:
- '.:/usr/src/app'
volumes_from:
- gem_cache
expose:
- '3001'
stdin_open: true
tty: true
command: bundle exec rails s -p 80 -b '0.0.0.0'
depends_on:
- gem_cache
gem_cache:
image: ruby:2.3.1
command: bin/true
volumes:
- /usr/local/bundle