Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
97 lines (88 loc) · 2.23 KB
/
Copy pathdocker-compose.yml
File metadata and controls
97 lines (88 loc) · 2.23 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
version: '3.8'
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
- REACT_APP_BACKEND_URL=http://localhost:5000
ports:
- '3000:80'
depends_on:
- backend
backend:
build:
context: ./backend
dockerfile: Dockerfile
environment:
- PORT=5000
- EXECUTION_URL=http://executor:4000
- EXECUTION_SECRET=change-me
ports:
- '5000:5000'
depends_on:
- executor
executor:
build:
context: ./executor
dockerfile: Dockerfile
environment:
- PORT=4000
- EXECUTION_SECRET=change-me
- HOST_TEMP=${PWD}/executor/temp
ports:
- '4000:4000'
# executor needs access to Docker daemon to create containers
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./executor/temp:/app/temp
# Language image build services: only included when running with the "builders" profile.
# They are omitted from normal `docker compose up -d --build`.
parallelcode-python:
profiles: ['builders']
build:
context: ./executor
dockerfile: docker/python.Dockerfile
image: parallelcode-python
restart: "no"
command: ["sh", "-c", "exit 0"]
parallelcode-node:
profiles: ['builders']
build:
context: ./executor
dockerfile: docker/node.Dockerfile
image: parallelcode-node
restart: "no"
command: ["sh", "-c", "exit 0"]
parallelcode-cpp:
profiles: ['builders']
build:
context: ./executor
dockerfile: docker/cpp.Dockerfile
image: parallelcode-cpp
restart: "no"
command: ["sh", "-c", "exit 0"]
parallelcode-java:
profiles: ['builders']
build:
context: ./executor
dockerfile: docker/java.Dockerfile
image: parallelcode-java
restart: "no"
command: ["sh", "-c", "exit 0"]
parallelcode-go:
profiles: ['builders']
build:
context: ./executor
dockerfile: docker/go.Dockerfile
image: parallelcode-go
restart: "no"
command: ["sh", "-c", "exit 0"]
parallelcode-rust:
profiles: ['builders']
build:
context: ./executor
dockerfile: docker/rust.Dockerfile
image: parallelcode-rust
restart: "no"
command: ["sh", "-c", "exit 0"]