Skip to content

Commit 2bd21f2

Browse files
docker-compose to start the frontend is working
1 parent dd95a49 commit 2bd21f2

File tree

5 files changed

+46
-1
lines changed

5 files changed

+46
-1
lines changed

docker-compose.override.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ services:
9595
frontend:
9696
restart: "no"
9797
ports:
98-
- "5173:80"
98+
- "5173:3000"
9999
build:
100100
context: ./frontend
101101
args:

frontend/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM node:24
2+
3+
WORKDIR /app
4+
5+
COPY package*.json ./
6+
RUN npm install
7+
8+
COPY . .
9+
10+
ARG VITE_API_URL
11+
RUN npm run build
12+
13+
EXPOSE 3000
14+
CMD ["npm", "start"]

frontend/Dockerfile.playwright

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM mcr.microsoft.com/playwright:v1.55.0-noble
2+
3+
WORKDIR /app
4+
5+
COPY package*.json /app/
6+
7+
RUN npm install
8+
9+
COPY ./ /app/
10+
11+
ARG VITE_API_URL=${VITE_API_URL}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
location /api {
2+
return 404;
3+
}
4+
location /docs {
5+
return 404;
6+
}
7+
location /redoc {
8+
return 404;
9+
}

frontend/nginx.conf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
server {
2+
listen 80;
3+
4+
location / {
5+
root /usr/share/nginx/html;
6+
index index.html index.htm;
7+
try_files $uri /index.html =404;
8+
}
9+
10+
include /etc/nginx/extra-conf.d/*.conf;
11+
}

0 commit comments

Comments
 (0)