-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
147 lines (139 loc) · 5.34 KB
/
docker-compose.yml
File metadata and controls
147 lines (139 loc) · 5.34 KB
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: '3.8'
services:
postgres:
image: postgres:15.9-bookworm
container_name: scribe-ai-postgres-container
environment:
- POSTGRES_USER=${POSTGRES_USER:-user}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-password}
- POSTGRES_DB=${POSTGRES_DB:-scribe.ai}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-user} -d ${POSTGRES_DB:-scribe.ai}"]
interval: 5s
timeout: 5s
retries: 5
azurite:
build:
context: ./src/azurite
dockerfile: Dockerfile
container_name: azurite-container
ports:
- "10000:10000"
- "10001:10001"
- "10002:10002"
volumes:
- azurite_blob_data:/opt/azurite/blob
- azurite_queue_data:/opt/azurite/queue
command: azurite --blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost 0.0.0.0 --blobPort 10000 --queuePort 10001 --tablePort 10002 --location /opt/azurite
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "10000"]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
rabbitmq:
image: rabbitmq:3.11-management
container_name: rabbitmq-container
ports:
- "5672:5672"
- "15672:15672"
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_USER:-guest}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD:-guest}
volumes:
- rabbitmq_data:/var/lib/rabbitmq
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "check_port_connectivity"]
interval: 5s
timeout: 5s
retries: 5
api:
build:
context: ./src/api
dockerfile: Dockerfile
container_name: scribe-ai-api-container
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER:-user}:${POSTGRES_PASSWORD:-password}@postgres:5432/${POSTGRES_DB:-scribe.ai}
- RABBITMQ_CONNECTION_STRING=amqp://${RABBITMQ_USER:-guest}:${RABBITMQ_PASSWORD:-guest}@rabbitmq:5672
- AZURE_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1;QueueEndpoint=http://azurite:10001/devstoreaccount1;TableEndpoint=http://azurite:10002/devstoreaccount1;
- PORT=3001
ports:
- "3001:3001"
depends_on:
postgres:
condition: service_healthy
rabbitmq:
condition: service_healthy
azurite:
condition: service_healthy
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "3001"]
interval: 10s
timeout: 5s
retries: 3
updater:
build:
context: ./src/api
dockerfile: Dockerfile
container_name: scribe-ai-updater-container
command: npm run updater
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER:-user}:${POSTGRES_PASSWORD:-password}@postgres:5432/${POSTGRES_DB:-scribe.ai}
- RABBITMQ_CONNECTION_STRING=amqp://${RABBITMQ_USER:-guest}:${RABBITMQ_PASSWORD:-guest}@rabbitmq:5672
- AZURE_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1;QueueEndpoint=http://azurite:10001/devstoreaccount1;TableEndpoint=http://azurite:10002/devstoreaccount1;
depends_on:
postgres:
condition: service_healthy
rabbitmq:
condition: service_healthy
azurite:
condition: service_healthy
translator:
build:
context: ./src/translator
dockerfile: Dockerfile
container_name: scribe-ai-translator-container
environment:
- RABBITMQ_CONNECTION_STRING=amqp://${RABBITMQ_USER:-guest}:${RABBITMQ_PASSWORD:-guest}@rabbitmq:5672
- AZURE_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1;QueueEndpoint=http://azurite:10001/devstoreaccount1;TableEndpoint=http://azurite:10002/devstoreaccount1;
- OPENAI_API_KEY=${OPENAI_API_KEY}
- GROQ_API_KEY=${GROQ_API_KEY}
- LANGCHAIN_TRACING_V2=${LANGCHAIN_TRACING_V2:-true}
- LANGCHAIN_ENDPOINT=${LANGCHAIN_ENDPOINT:-https://api.smith.langchain.com}
- LANGCHAIN_API_KEY=${LANGCHAIN_API_KEY}
- LANGCHAIN_PROJECT=${LANGCHAIN_PROJECT:-scribe-ai}
- TRANSCRIPTION_JOB_QUEUE_NAME=${TRANSCRIPTION_JOB_QUEUE_NAME:-transcription-jobs-demo}
- TRANSCRIPTION_UPDATE_QUEUE_NAME=${TRANSCRIPTION_UPDATE_QUEUE_NAME:-transcription-updates}
- DEAD_LETTER_EXCHANGE=${DEAD_LETTER_EXCHANGE:-scribe-ai-dlx}
- MAX_RETRIES=${MAX_RETRIES:-5}
- MAX_LENGTH_MINUTES=${MAX_LENGTH_MINUTES:-0}
volumes:
- translator_data:/app/incoming
depends_on:
rabbitmq:
condition: service_healthy
azurite:
condition: service_healthy
ui:
build:
context: ./src/ui/scribe
dockerfile: Dockerfile
container_name: scribe-ai-ui-container
environment:
- REACT_APP_API_URL=http://localhost:3001
- PORT=3000
ports:
- "3000:3000"
depends_on:
api:
condition: service_healthy
volumes:
postgres_data:
rabbitmq_data:
azurite_blob_data:
azurite_queue_data:
translator_data: