fix docker setup
This commit is contained in:
@@ -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) && \
|
||||||
|
|||||||
@@ -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:
|
||||||
Reference in New Issue
Block a user