update docker compose file to version 3

This commit is contained in:
Zachary Chai 2017-02-09 16:10:21 -05:00
parent 85485d1bf2
commit c44b38c3da
1 changed files with 4 additions and 9 deletions

View File

@ -1,4 +1,4 @@
version: '2'
version: '3'
services:
web:
build:
@ -8,8 +8,7 @@ services:
- '80:80'
volumes:
- '.:/usr/src/app'
volumes_from:
- gem_cache
- gem_cache:/usr/local/bundle
env_file:
- .env
expose:
@ -17,10 +16,6 @@ services:
stdin_open: true
tty: true
command: bundle exec rails s -p 80 -b '0.0.0.0'
depends_on:
- gem_cache
volumes:
gem_cache:
image: ruby:2.3.1
command: bin/true
volumes:
- /usr/local/bundle
driver: local