From 9aba84611272da752d279391a5d4c74d072427ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Turbelin?= Date: Tue, 17 Aug 2021 07:11:40 +0200 Subject: [PATCH] Add webpacker config --- docker-compose.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 480eab6606..bd7e2dc386 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,16 +28,29 @@ services: depends_on: - db - redis + - webpack environment: OFN_DB_HOST: db OFN_REDIS_URL: redis://redis/ OFN_REDIS_JOBS_URL: redis://redis + WEBPACKER_DEV_SERVER_HOST: webpack command: > bash -c "wait-for-it -t 30 db:5432 && rm -f tmp/pids/server.pid && (bundle check || bundle install) yarn install && bundle exec rails s -p 3000 -b '0.0.0.0'" + webpack: + build: . + command: ./bin/webpack-dev-server + volumes: + - .:/usr/src/app + ports: + - '3035:3035' + environment: + NODE_ENV: development + RAILS_ENV: development + WEBPACKER_DEV_SERVER_HOST: 0.0.0.0 worker: tty: true stdin_open: true