-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1.13 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.13 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
services:
# WebSocket Server
ws:
build:
context: .
dockerfile: docker/Dockerfile.websocket
ports:
- "8080:8080"
environment:
- PORT=8080
restart: unless-stopped
depends_on:
- redis
# RTC Signaling Server
rtc:
build:
context: .
dockerfile: docker/Dockerfile.rtc
ports:
- "8081:8081"
environment:
- PORT=8081
restart: unless-stopped
# Frontend (Next.js)
frontend:
build:
context: .
dockerfile: docker/Dockerfile.frontend
args:
- NEXT_PUBLIC_WS_URL=ws://localhost:8080
- NEXT_PUBLIC_RTC_URL=ws://localhost:8081
- NEXT_PUBLIC_SITE_URL=http://localhost:3000
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET}
- NEXTAUTH_URL=http://localhost:3000
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
ports:
- "3000:3000"
depends_on:
- ws
- rtc
restart: unless-stopped
# Redis
redis:
image: redis:alpine
ports:
- "6379:6379"
restart: unless-stopped
command: redis-server --save 60 1 --loglevel warning