Skip to content

Commit

Permalink
Merge pull request #433 from techcomrade/docker-config
Browse files Browse the repository at this point in the history
docker: config for window
  • Loading branch information
hwt75 authored Jun 27, 2024
2 parents dab38e1 + 8923950 commit c7d74f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ app:

# chạy tất cả các services development
dev:
docker compose rm -sf; \
docker compose --profile "*" -f docker-compose-dev.yml up --build --detach; \
docker compose rm -sf && \
docker compose --profile "*" -f docker-compose-dev.yml up --build --detach && \
docker image prune -f

log:
Expand All @@ -33,7 +33,7 @@ chatdb:

# chỉ run các services backend bao gồm db, node, chat (đồng thời run interactive shell của chat)
chatdev:
docker compose rm -sf; \
docker compose rm -sf && \
docker compose -f docker-compose-back-end.yml up --build --detach && \
docker exec -it chat-fmecg iex -S mix phx.server

Expand Down
1 change: 1 addition & 0 deletions frontend_web/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM node:20-alpine AS node_builder
WORKDIR /web/

ENV PORT=3002
ENV WATCHPACK_POLLING=true

COPY package.json ./

Expand Down
2 changes: 1 addition & 1 deletion server-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon server.js",
"start": "nodemon --legacy-watch server.js",
"migration": "node migration.js",
"migrate": "npx sequelize-cli db:migrate --name",
"migrate.all": "npx sequelize-cli db:migrate",
Expand Down

0 comments on commit c7d74f1

Please sign in to comment.