-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 1007 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '3.9'
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- 8501:8501
# volumes:
# - ./frontend/.env:/app/.env
networks:
KaggleX:
aliases:
- frontend.rag
depends_on:
- backend
restart: always
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- 5000:5000
volumes:
- ./backend/rag_engine/.env:/backend/rag_engine/.env
networks:
KaggleX:
aliases:
- api.backend
restart: always
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['1'] # use gpu device 1
capabilities: [gpu]
networks:
KaggleX: #external: true use if you ran docker network create Transcription