From 05179f8b76b8d38cad66be66e5fe9d08a3cbcb1d Mon Sep 17 00:00:00 2001 From: Surim Kim Date: Tue, 12 Nov 2019 16:55:30 +0900 Subject: [PATCH] fix doc. config webpacker with docker for autoreload (#2297) --- docs/docker.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/docker.md b/docs/docker.md index 4f93eb157..d3e8d3b85 100644 --- a/docs/docker.md +++ b/docs/docker.md @@ -18,6 +18,15 @@ services: - '3035:3035' ``` +Second, change the webpack-dev-server host to the service name of the docker-compose in config/webpacker.yml: + +```yaml +development: + <<: *default + dev_server: + host: webpacker +``` + add nodejs and yarn as dependencies in Dockerfile, ```dockerfile