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