-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (68 loc) · 1.68 KB
/
Copy pathdocker-compose.yml
File metadata and controls
73 lines (68 loc) · 1.68 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
services:
nginx:
image: nginx:1.25-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./nginx/certs:/etc/nginx/certs:ro
depends_on:
- frontend
- backend
restart: unless-stopped
networks:
- simples-net
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
- VITE_SUPABASE_URL=${SUPABASE_URL}
- VITE_SUPABASE_ANON_KEY=${SUPABASE_ANON_KEY}
- VITE_DEMO_MODE=false
expose:
- "80"
restart: unless-stopped
networks:
- simples-net
backend:
build:
context: ./backend
dockerfile: Dockerfile
expose:
- "5000"
environment:
- SUPABASE_URL=${SUPABASE_URL:-}
- SUPABASE_ANON_KEY=${SUPABASE_ANON_KEY:-}
- SUPABASE_JWT_SECRET=${SUPABASE_JWT_SECRET:-}
- EXEC_TIMEOUT_S=${EXEC_TIMEOUT_S:-30}
- COMPILE_TIMEOUT_S=${COMPILE_TIMEOUT_S:-30}
- MAX_CODE_KB=${MAX_CODE_KB:-64}
- RUNS_PER_MINUTE=${RUNS_PER_MINUTE:-30}
- SANDBOX_IMAGE=${SANDBOX_IMAGE:-simples-runner:latest}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- LOG_FORMAT=${LOG_FORMAT:-json}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- simples_tmp:/tmp/simples
depends_on:
runner_image_build:
condition: service_completed_successfully
restart: unless-stopped
networks:
- simples-net
runner_image_build:
image: simples-runner:latest
build:
context: ./runner
dockerfile: Dockerfile
command: ["true"]
restart: "no"
networks:
- simples-net
volumes:
simples_tmp:
networks:
simples-net:
driver: bridge