Skip to content

Commit

Permalink
Merge pull request #102 from leinadsened/main
Browse files Browse the repository at this point in the history
Add docker-compose-yml
  • Loading branch information
ashmilhussain authored Oct 10, 2024
2 parents 1a9da23 + 67cbeb7 commit 181f7e5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
28 changes: 28 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '3.8'

services:
backend:
build:
context: .
dockerfile: Dockerfile
ports:
- "8001:8001"
volumes:
- ./:/app
environment:
- PYTHONDONTWRITEBYTECODE=1
- PYTHONUNBUFFERED=1
command: 'python3 main.py --config ./config.yaml llm'

frontend:
build:
context: ./ui
dockerfile: Dockerfile
args:
- BACKEND_URL=http://localhost:8001
ports:
- "8080:5000"
volumes:
- ./ui:/app
depends_on:
- backend
4 changes: 3 additions & 1 deletion ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
FROM node:20-alpine AS build

ARG BACKEND_URL

WORKDIR /app

COPY package.json package-lock.json ./
RUN npm ci

COPY . .

COPY .env .env
ENV VITE_BACKEND_URL=$BACKEND_URL

RUN npm run build

Expand Down

0 comments on commit 181f7e5

Please sign in to comment.