-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
89 lines (83 loc) · 1.89 KB
/
Copy pathdocker-compose.yml
File metadata and controls
89 lines (83 loc) · 1.89 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
services:
mongo:
image: mongo:7
container_name: collab-mongo
restart: unless-stopped
ports:
- '27017:27017'
volumes:
- mongo-data:/data/db
redis:
image: redis:7-alpine
container_name: collab-redis
restart: unless-stopped
ports:
- '6379:6379'
websocket-server:
build:
context: ./server/services/websocket-server
dockerfile: Dockerfile
container_name: collab-websocket
restart: unless-stopped
environment:
PORT: 5000
CLIENT_ORIGIN: http://35.193.132.29:5173
REDIS_URL: redis://redis:6379
depends_on:
- redis
ports:
- '5000:5000'
- '4000:5000'
submit-api:
build:
context: ./server/services/submit-api
dockerfile: Dockerfile
container_name: collab-submit-api
restart: unless-stopped
environment:
PORT: 3000
CLIENT_ORIGIN: http://35.193.132.29:5173
REDIS_URL: redis://redis:6379
REDIS_QUEUE_NAME: problems
MONGO_URI: mongodb://mongo:27017/codeeditor
MONGO_DB_NAME: codeeditor
depends_on:
- redis
- mongo
ports:
- '3000:3000'
worker:
build:
context: ./server/services
dockerfile: worker/Dockerfile
container_name: collab-worker
restart: unless-stopped
environment:
REDIS_URL: redis://redis:6379
REDIS_QUEUE_NAME: problems
WORKER_COUNT: 2
CODE_TIMEOUT_MS: 60000
CODE_RUNNER_MODE: docker
depends_on:
- redis
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /tmp:/tmp
client:
build:
context: ./client
dockerfile: Dockerfile
container_name: collab-client
restart: unless-stopped
ports:
- '5173:5173'
volumes:
- ./client:/app
- /app/node_modules
environment:
VITE_PORT: 5173
depends_on:
- websocket-server
- submit-api
volumes:
mongo-data: