-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 1.15 KB
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (47 loc) · 1.15 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
services:
piston:
image: ghcr.io/engineer-man/piston:latest
container_name: collabcode_piston
platform: linux/amd64
privileged: true
restart: unless-stopped
tmpfs:
- /tmp:exec
volumes:
- ./data/piston/packages:/piston/packages
environment:
PISTON_OUTPUT_MAX_SIZE: 65536
PISTON_RUN_TIMEOUT: 10000
PISTON_COMPILE_TIMEOUT: 15000
PISTON_MAX_CONCURRENT_JOBS: 32
server:
build:
context: .
dockerfile: apps/server/Dockerfile
container_name: collabcode_server
restart: unless-stopped
environment:
PISTON_URL: http://piston:2000
AGORA_APP_ID: ${AGORA_APP_ID}
AGORA_APP_CERTIFICATE: ${AGORA_APP_CERTIFICATE}
volumes:
- server-data:/app/apps/server/data
depends_on:
- piston
nginx:
build:
context: .
dockerfile: apps/client/Dockerfile
args:
VITE_TLDRAW_LICENSE_KEY: ${VITE_TLDRAW_LICENSE_KEY}
container_name: collabcode_nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- /etc/letsencrypt:/etc/letsencrypt:ro
depends_on:
- server
volumes:
server-data: