-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
48 lines (44 loc) · 1.02 KB
/
compose.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
name: agatha
services:
redis:
container_name: redis
image: gperdrizet/agatha:redis-local
restart: unless-stopped
environment:
REDIS_IP: '0.0.0.0'
REDIS_PORT: '6379'
REDIS_PASSWORD: $REDIS_PASSWORD
ports:
- '6379:6379'
command: ./start_server.sh
privileged: true
api:
container_name: api
image: gperdrizet/agatha:api-local
restart: unless-stopped
environment:
HOST_IP: '0.0.0.0'
FLASK_PORT: '5000'
REDIS_IP: redis
REDIS_PORT: '6379'
HF_TOKEN: $HF_TOKEN
REDIS_PASSWORD: $REDIS_PASSWORD
ports:
- 5000:5000
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['0', '1', '2']
capabilities: [gpu]
command: ./start_api.sh
bot:
container_name: bot
image: gperdrizet/agatha:bot-local
restart: unless-stopped
environment:
HOST_IP: api
FLASK_PORT: '5000'
TELEGRAM_TOKEN: $TELEGRAM_TOKEN
command: python3 ./bot.py