Skip to content

Commit a358fd2

Browse files
committed
feat: introduce docker-compose
1 parent 3f5d1fb commit a358fd2

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

docker-compose.dev.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
services:
2+
kotaemon:
3+
volumes:
4+
- "./ktem_app_data:/app/ktem_app_data"
5+
- "./libs/kotaemon:/app/kotaemon"
6+
- "./libs/ktem:/app/ktem"
7+
- "./flowsettings.py:/app/flowsettings.py"
8+
ports:
9+
- "7860:7860"

docker-compose.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
services:
2+
kotaemon:
3+
build:
4+
context: .
5+
target: lite
6+
dockerfile: Dockerfile
7+
env_file: .env
8+
environment:
9+
- GRADIO_SERVER_NAME=0.0.0.0
10+
- GRADIO_SERVER_PORT=7860
11+
ports:
12+
- "7860:7860"
13+
networks:
14+
- backend
15+
# gocr:
16+
# image: ghcr.io/phv2312/got-ocr2.0:main
17+
# ports:
18+
# - "8881:8881"
19+
# deploy:
20+
# resources:
21+
# reservations:
22+
# devices:
23+
# - driver: nvidia
24+
# count: 1
25+
# capabilities: [gpu]
26+
# networks:
27+
# - backend
28+
networks:
29+
backend:
30+
driver: bridge

0 commit comments

Comments
 (0)