-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose_gpu.yaml
102 lines (93 loc) · 2.21 KB
/
docker-compose_gpu.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
services:
ollama:
volumes:
- ./ollama/ollama:/root/.ollama
container_name: ollama
pull_policy: always
tty: true
restart: unless-stopped
build:
dockerfile: ollama/DOCKERFILE
environment:
- OLLAMA_KEEP_ALIVE=24h
networks:
- ollama-docker
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
aisel-script:
build:
dockerfile: ./data-sources/aisel/DOCKERFILE # Ensure this points to the correct Dockerfile
container_name: aisel-container
env_file:
- .env
networks:
- ollama-docker
restart: unless-stopped
biorxiv-script:
build:
dockerfile: ./data-sources/bioRxiv/DOCKERFILE # Ensure this points to the correct Dockerfile
container_name: biorxiv-container
env_file:
- .env
networks:
- ollama-docker
restart: unless-stopped
arxiv-script:
build:
dockerfile: ./data-sources/arxiv/DOCKERFILE # Specify the Dockerfile for app1
container_name: arxiv-container
env_file:
- .env
networks:
- ollama-docker
restart: unless-stopped
pubmed-script:
build:
dockerfile: ./data-sources/pubmed/DOCKERFILE # Specify the Dockerfile for app1
container_name: pubmed-container
env_file:
- .env
networks:
- ollama-docker
restart: unless-stopped
db:
container_name: db_container
image: ankane/pgvector
env_file:
- .env
volumes:
- ./database_init/init.sql:/docker-entrypoint-initdb.d/init.sql
- db_data:/var/lib/postgresql/data
networks:
- ollama-docker
restart: unless-stopped
bot:
build:
context: "."
dockerfile: telegram/DOCKERFILE
env_file:
- .env
volumes:
- ./telegram/handlers:/codebase/handlers
restart: unless-stopped
networks:
- ollama-docker
updater:
build:
dockerfile: ./telegram_update/DOCKERFILE # Specify the Dockerfile for app1
container_name: update-container
env_file:
- .env
networks:
- ollama-docker
restart: unless-stopped
volumes:
db_data:
networks:
ollama-docker:
external: false