Add docker files

This commit is contained in:
Akshay
2023-10-15 20:21:09 +05:30
parent e5a875856a
commit e95ebfd6a0
2 changed files with 33 additions and 0 deletions

22
docker-compose-mock.yaml Normal file
View File

@@ -0,0 +1,22 @@
version: "3.9"
services:
frontend:
build: ./frontend
environment:
- VITE_API_HOST=http://localhost:7091
- VITE_API_STREAMING=$VITE_API_STREAMING
ports:
- "5173:5173"
depends_on:
- mock-backend
mock-backend:
build: ./mock-backend
ports:
- "7091:7091"
redis:
image: redis:6-alpine
ports:
- 6379:6379

11
mock-backend/Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM node:20.6.1-bullseye-slim
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 7091
CMD [ "npm", "run", "start"]