fix docker setup

This commit is contained in:
João Geonizeli
2022-07-28 22:20:27 -03:00
parent c9dd4fc8f0
commit d82dcbb16a
2 changed files with 4 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ RUN apk update && \
nodejs \ nodejs \
yarn \ yarn \
less \ less \
bash \
graphviz \ graphviz \
shared-mime-info && \ shared-mime-info && \
bundle config jobs $(nproc --all) && \ bundle config jobs $(nproc --all) && \

View File

@@ -5,6 +5,7 @@ x-rails: &rails
volumes: volumes:
- .:/progress-test:delegated - .:/progress-test:delegated
- gems:/home/progress-test:delegated - gems:/home/progress-test:delegated
- node_modules:/progress-test/node_modules:delegated
environment: environment:
- DISABLE_SPRING=1 - DISABLE_SPRING=1
- DATABASE_URL=postgres://postgres:postgres@db:5432 - DATABASE_URL=postgres://postgres:postgres@db:5432
@@ -18,8 +19,7 @@ services:
command: > command: >
sh -c ' sh -c '
bundle check || bundle install && bundle check || bundle install &&
rm -f tmp/pids/server.pid && bin/rails server -b 0.0.0.0 -p 3000 | yarn build --watch'
rails s -b 0.0.0.0'
ports: ports:
- "3000:3000" - "3000:3000"
@@ -42,3 +42,4 @@ services:
volumes: volumes:
gems: gems:
pg-data: pg-data:
node_modules: