Skip to content

Commit

Permalink
exposing port 3035 for webpack hot reload w docker
Browse files Browse the repository at this point in the history
  • Loading branch information
amanmibra committed Jul 7, 2018
1 parent 704c039 commit fb614dc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ RUN apt-get update\
WORKDIR /usr/src/app
COPY Gemfile* ./
RUN bundle install
COPY . .
COPY package.json yarn* ./
RUN yarn install
COPY . .

EXPOSE 5000
CMD ./bin/db-setup.sh
EXPOSE 5000 3035
# CMD ./bin/db-setup.sh
2 changes: 1 addition & 1 deletion bin/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ then
fi

printf "🖥️ Starting app 🖥️ \n"
docker-compose run -p '5000:5000' app yarn start
docker-compose run -p '5000:5000' -p '3035:3035' app yarn start
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ services:
- .:/usr/src/app
ports:
- "5000:5000"
- "3035:3035"
depends_on:
- db

0 comments on commit fb614dc

Please sign in to comment.