-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
120 lines (114 loc) · 2.97 KB
/
docker-compose.yml
File metadata and controls
120 lines (114 loc) · 2.97 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
version: '3.8'
services:
# PostgreSQL Database
postgres:
image: postgres:15-alpine
container_name: arlo-meeting-assistant-postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: meeting_assistant
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
# Redis (optional, for WebSocket scaling)
redis:
image: redis:7-alpine
container_name: arlo-meeting-assistant-redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
profiles:
- with-redis
# Backend API Server
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: arlo-meeting-assistant-backend
restart: unless-stopped
env_file:
- .env
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/meeting_assistant
REDIS_URL: redis://redis:6379
NODE_ENV: development
ports:
- "3000:3000"
volumes:
- ./backend:/app
- /app/node_modules
- ./storage:/app/storage
depends_on:
postgres:
condition: service_healthy
command: sh -c "npx prisma db push --skip-generate && npm run dev"
# Frontend (Zoom App)
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: arlo-meeting-assistant-frontend
restart: unless-stopped
environment:
REACT_APP_API_URL: http://localhost:3000
REACT_APP_WS_URL: ws://localhost:3000
DANGEROUSLY_DISABLE_HOST_CHECK: "true"
ports:
- "3001:3000"
volumes:
- ./frontend:/app
- /app/node_modules
command: npm start
stdin_open: true
tty: true
# RTMS Server (Zoom RTMS SDK)
# NOTE: RTMS SDK requires x86_64/amd64 platform due to native dependencies
# On Apple Silicon (M1/M2/M3), this will run in Rosetta emulation
rtms:
build:
context: ./rtms
dockerfile: Dockerfile
platforms:
- linux/amd64
platform: linux/amd64
container_name: arlo-meeting-assistant-rtms
restart: unless-stopped
env_file:
- .env
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/meeting_assistant
BACKEND_URL: http://backend:3000
# RTMS SDK requires these specific variable names
ZM_RTMS_CLIENT: ${ZOOM_CLIENT_ID}
ZM_RTMS_SECRET: ${ZOOM_CLIENT_SECRET}
# RTMS SDK v1.0 logging (replaces configureLogger())
ZM_RTMS_LOG_LEVEL: debug
ports:
- "3002:3002"
volumes:
- ./rtms/src:/app/src
- /app/node_modules
depends_on:
backend:
condition: service_started
command: npm start
volumes:
postgres_data:
driver: local
redis_data:
driver: local