-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
97 lines (89 loc) · 2.06 KB
/
Copy pathdocker-compose.yml
File metadata and controls
97 lines (89 loc) · 2.06 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: 'v1'
services:
web:
build:
context: ./client
dockerfile: Dockerfile
ports:
- "5173:5173"
networks:
- mynetwork
image: client-server
api-gateway:
build:
context: ./server/api-gateway
dockerfile: Dockerfile
ports:
- "5000:5000"
volumes:
- //var/run/docker.sock:/var/run/docker.sock
networks:
- mynetwork
image: api-gateway-server
environment:
- NODE_ENV=production
env_file: .env
codeExecution:
build:
context: ./server/codeExecution
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- //var/run/docker.sock:/var/run/docker.sock
networks:
- mynetwork
image: code-executor-server
environment:
- NODE_ENV=production
env_file: .env
python-compiler:
image: python-compiler
build:
context: ./server/python-compiler
dockerfile: Dockerfile
working_dir: /app/server/python-compiler
command: bash
volumes:
- .:/app/server/python-compiler
- //var/run/docker.sock:/var/run/docker.sock
networks:
- mynetwork
cpp-compiler:
image: cpp-compiler
build:
context: ./server/cpp-compiler
dockerfile: Dockerfile
working_dir: /app/server/cpp-compiler
command: bash
volumes:
- //var/run/docker.sock:/var/run/docker.sock
- .:/app/server/cpp-compiler
networks:
- mynetwork
java-compiler:
image: java-compiler
build:
context: ./server/java-compiler
dockerfile: Dockerfile
working_dir: /app/server/java-compiler
command: bash
volumes:
- //var/run/docker.sock:/var/run/docker.sock
- .:/app/server/java-compiler
networks:
- mynetwork
nodejs-compiler:
image: nodejs-compiler
build:
context: ./server/nodejs-compiler
dockerfile: Dockerfile
working_dir: /app/server/nodejs-compiler
command: bash
volumes:
- //var/run/docker.sock:/var/run/docker.sock
- .:/app/server/nodejs-compiler
networks:
- mynetwork
networks:
mynetwork: