change version and build

Signed-off-by: Lukas Pol <lukaspaespol@gmail.com>
This commit is contained in:
Lukas Pol 2020-04-20 18:14:41 -03:00
parent 91e1360302
commit dae03627d4

View File

@ -1,4 +1,4 @@
version: '2'
version: '3.7'
services:
db:
image: postgres
@ -8,7 +8,7 @@ services:
POSTGRES_USER: 'username'
POSTGRES_HOST_AUTH_METHOD: trust
web:
build: .
build: ./web
command: bash -c "rm -f tmp/pids/server.pid && yarn install --check-files && rake db:create db:migrate && bundle exec rails s -b 0.0.0.0"
volumes:
- ./web:/myapp