generated from CogitoNTNU/README-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (78 loc) · 1.97 KB
/
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
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
version: '2.1'
services:
llm-service:
build: ./core
restart: unless-stopped
environment:
FLASK_ENV: ${FLASK_ENV} # Autorestarts flask when code changes are detected
OPENAI_API_KEY: ${OPENAI_API_KEY}
LANGSMITH_API_KEY: ${LANGSMITH_API_KEY}
LANGCHAIN_TRACING_V2: ${LANGCHAIN_TRACING_V2}
LANGCHAIN_ENDPOINT: "https://api.smith.langchain.com"
LANGCHAIN_PROJECT: ${LANGCHAIN_PROJECT}
PERPLEXITY_API_KEY: ${PERPLEXITY_API_KEY}
GOOGLE_AUTH_KEY: ${GOOGLE_AUTH_KEY}
GOOGLE_CALENDAR_ID: ${GOOGLE_CALENDAR_ID}
PORT: ${PORT}
TAVILY_API_KEY: ${TAVILY_API_KEY}
Port_STT: ${PORT_STT}
volumes:
- ./core:/app # Mount the application code to detect live changes
networks:
- backend
stop_signal: SIGINT
ports:
- "3000:3000"
deploy:
resources:
limits:
cpus: '0.5'
memory: 2048M # Memory limit for the compose
speech-to-text:
build: ./speechToText
restart: unless-stopped
environment:
FLASK_ENV: ${FLASK_ENV} # Autorestarts flask when code changes are detected
OPENAI_API_KEY: ${OPENAI_API_KEY}
PORT_STT: ${PORT_STT}
volumes:
- ./speechToText:/app # Mount the application code to detect live changes
networks:
- backend
stop_signal: SIGINT
ports:
- "3001:3001"
redis:
image: redis:latest
container_name: redis_audio
ports:
- "6379:6379"
networks:
- backend
command: >
redis-server
--appendonly yes
--save 60 1
--save 300 100
--save 900 1000
--maxmemory 1000mb
volumes:
- ./redis_data:/data
tts:
build:
context: ./textToSpeech
dockerfile: Dockerfile
networks:
- backend
env_file:
- .env
ports:
- "5000:5000"
environment:
- REDIS_URL=redis://redis:6379
- NARKEE_API_KEY=${NARKEE_API_KEY}
depends_on:
- redis
networks:
backend:
driver: bridge