Skip to content

Commit b0f8409

Browse files
committed
Change dockerfile commands and add env variables in docker compose
1 parent 25c725b commit b0f8409

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

backend/question-service/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ COPY . .
1010

1111
EXPOSE 3000
1212

13-
CMD ["npm", "start"]
13+
CMD ["npm", "run", "dev"]

backend/user-service/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ COPY . .
1010

1111
EXPOSE 3001
1212

13-
CMD ["npm", "start"]
13+
CMD ["npm", "run", "dev"]

docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ services:
22
user-service:
33
image: peerprep/user-service
44
build: ./backend/user-service
5+
environment:
6+
- CHOKIDAR_USEPOLLING=true
57
env_file: ./backend/user-service/.env
68
ports:
79
- 3001:3001
@@ -17,6 +19,8 @@ services:
1719
question-service:
1820
image: peerprep/question-service
1921
build: ./backend/question-service
22+
environment:
23+
- CHOKIDAR_USEPOLLING=true
2024
env_file: ./backend/question-service/.env
2125
ports:
2226
- 3000:3000
@@ -33,6 +37,8 @@ services:
3337
frontend:
3438
image: peerprep/frontend
3539
build: ./frontend
40+
environment:
41+
- CHOKIDAR_USEPOLLING=true
3642
ports:
3743
- 5173:5173
3844
depends_on:

0 commit comments

Comments
 (0)