Skip to content

Commit 0744930

Browse files
committed
fix: error while running client in localhost port is not exposed in docker image
1 parent 0ac8f41 commit 0744930

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

Client/DockerFile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ RUN npm install
88

99
COPY . .
1010

11+
EXPOSE 5173
12+
1113
CMD ["npm", "run", "dev"]

docker-compose.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,22 @@ services:
6262
- "8080:80"
6363
depends_on:
6464
- postgres
65-
client:
65+
frontend:
6666
build:
6767
context: ./client
6868
dockerfile: Dockerfile
69-
container_name: brainvector-client
69+
container_name: brainvector-frontend
7070
ports:
71-
- "5173:80"
71+
- "5173:5173"
72+
volumes:
73+
- ./client:/app
74+
- /app/node_modules
75+
working_dir: /app
76+
command: ["npm", "run", "dev", "--", "--host"]
7277
depends_on:
7378
- backend
7479
restart: always
80+
7581
volumes:
7682
pgdata:
7783
redisdata:

0 commit comments

Comments
 (0)