-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
131 lines (122 loc) · 4.5 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# docker-compose.yml
## TODO: substitute localhost references in env with correct service names
version: '3.7'
services:
rabbitmq:
image: rabbitmq:3.12.12-management
container_name: testflight-rabbitmq
ports:
- '5671:5671'
- '5672:5672'
- '15672:15672'
#volumes:
# - ./.rabbitmq:/etc/rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER-admin}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS-adminpass}
restart: 'unless-stopped'
redis:
image: redis:7.2.4-alpine
container_name: testflight-redis
ports:
- '6379:6379'
restart: 'unless-stopped'
stream-connector:
build: ./watson-stt-stream-connector
container_name: stream-connector
ports:
- "8080:8080"
environment:
- STREAM_ADAPTER_TYPE=${STREAM_ADAPTER_TYPE-GenesysAudioHookAdapter}
- WATSON_STT_USERNAME=${WATSON_STT_USERNAME}
- WATSON_STT_PASSWORD=${WATSON_STT_PASSWORD}
- WATSON_STT_URL=${WATSON_STT_URL}
- WATSON_STT_MODEL=${WATSON_STT_MODEL}
- WATSON_STT_END_OF_PHRASE_SILENCE_TIME=${WATSON_STT_END_OF_PHRASE_SILENCE_TIME-1.3}
- STREAM_CONNECTOR_API_KEY=${STREAM_CONNECTOR_API_KEY}
- DEFAULT_SERVER_LISTEN_PORT=${DEFAULT_SERVER_LISTEN_PORT-8080}
- LOG_LEVEL=trace
- NODE_ENV=dev
- DEBUG=*
- AAN_AMQP_URI=${AAN_AMQP_URI-amqp://admin:adminpass@rabbitmq:5672}
- AAN_REDIS_URI=${AAN_REDIS_URI-redis://redis:6379/1}
- OTEL_TRACES_EXPORTER=${OTEL_TRACES_EXPORTER-otlp}
- OTEL_SERVICE_NAME="${OTEL_SERVICE_NAME-stream-connector}"
- OTEL_EXPORTER_OTLP_ENDPOINT=${OTEL_EXPORTER_OTLP_ENDPOINT-http://jaeger:4317}
- OTEL_NODE_RESOURCE_DETECTORS=env,host
- OTEL_EXPORTER_OTLP_PROTOCOL=grpc
celery-workers:
build: ./celery
#container_name: aan-celery-workers
tty: true
deploy:
mode: replicated
replicas: 4
command: sh -c 'celery -A celery_worker worker -l INFO'
depends_on:
- rabbitmq
- redis
environment:
- AAN_CELERY_BROKER_URI=${AAN_CELERY_BROKER_URI-amqp://admin:adminpass@rabbitmq:5672}
- ANN_SOCKETIO_SERVER=${ANN_SOCKETIO_SERVER-http://api-server:8000}
- AAN_REDIS_HOST=${AAN_REDIS_HOST-redis}
- AAN_REDIS_PORT=${AAN_REDIS_PORT-6379}
- AAN_REDIS_DB_INDEX=${AAN_REDIS_DB_INDEX-2}
- OTEL_SERVICE_NAME=${OTEL_SERVICE_NAME-celery-workers}
- AAN_WML_APIKEY=${AAN_WML_APIKEY}
- AAN_WML_URL=${AAN_WML_URL}
- AAN_WML_PROJECT_ID=${AAN_WML_PROJECT_ID}
- AAN_ENTITY_EXTRACTION_LLM_MODEL_NAME=${AAN_ENTITY_EXTRACTION_LLM_MODEL_NAME}
- AAN_ENTITY_EXTRACTION_ENTITIES=${AAN_ENTITY_EXTRACTION_ENTITIES}
- AAN_SUMMARIZATION_LLM_MODEL_NAME=${AAN_SUMMARIZATION_LLM_MODEL_NAME}
- AAN_ASSISTANT_APIKEY=${AAN_ASSISTANT_APIKEY}
- AAN_ASSISTANT_URL=${AAN_ASSISTANT_URL}
- AAN_ASSISTANT_ID=${AAN_ASSISTANT_ID}
- AAN_NLU_URL=${AAN_NLU_URL}
- AAN_NLU_API_KEY=${AAN_NLU_API_KEY}
- LOG_LEVEL=trace
- NODE_ENV=dev
- DEBUG=*
celery-flower:
build: ./celery
container_name: aan-celery-flower
tty: true
command: sh -c 'celery -A celery_worker flower'
depends_on:
- rabbitmq
- redis
ports:
- '5555:5555'
environment:
- AAN_CELERY_BROKER_URI=${AAN_CELERY_BROKER_URI-amqp://admin:adminpass@rabbitmq:5672}
- ANN_SOCKETIO_SERVER=${ANN_SOCKETIO_SERVER-http://api-server:8000}
- AAN_REDIS_HOST=${AAN_REDIS_HOST-redis}
- AAN_REDIS_PORT=${AAN_REDIS_PORT-6379}
- AAN_REDIS_DB_INDEX=${AAN_REDIS_DB_INDEX-2}
- OTEL_SERVICE_NAME=${OTEL_SERVICE_NAME-celery-flower}
- AAN_WML_APIKEY=${AAN_WML_APIKEY}
- AAN_WML_URL=${AAN_WML_URL}
- AAN_WML_PROJECT_ID=${AAN_WML_PROJECT_ID}
- AAN_ENTITY_EXTRACTION_LLM_MODEL_NAME=${AAN_ENTITY_EXTRACTION_LLM_MODEL_NAME}
- AAN_ENTITY_EXTRACTION_ENTITIES=${AAN_ENTITY_EXTRACTION_ENTITIES}
- AAN_SUMMARIZATION_LLM_MODEL_NAME=${AAN_SUMMARIZATION_LLM_MODEL_NAME}
- AAN_ASSISTANT_APIKEY=${AAN_ASSISTANT_APIKEY}
- AAN_ASSISTANT_URL=${AAN_ASSISTANT_URL}
- AAN_ASSISTANT_ID=${AAN_ASSISTANT_ID}
- AAN_NLU_URL=${AAN_NLU_URL}
- AAN_NLU_API_KEY=${AAN_NLU_API_KEY}
- LOG_LEVEL=trace
- NODE_ENV=dev
- DEBUG=*
api-server:
build: ./api-server
container_name: aan-api-server
ports:
- '8000:8000'
restart: 'unless-stopped'
environment:
- OTEL_SERVICE_NAME=${OTEL_SERVICE_NAME-api-server}
- DEBUG=configureSocketIo
- AAN_REDIS_URI=${AAN_REDIS_URI}
- AAN_AMQP_URI=${AAN_AMQP_URI}
#API-Server uses watson base images, so it'll be hard to build from dockerfile for most people