-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerComposeServices.txt
46 lines (42 loc) · 1009 Bytes
/
dockerComposeServices.txt
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
version: "3.8"
services:
cpp_service:
build:
context: ./coderunners/c++_coderunner
dockerfile: Dockerfile
volumes:
- ./coderunners/c++_coderunner:/code
working_dir: /code
command: g++ main.cpp -o main && ./main
js_service:
build:
context: ./coderunners/javascript_coderunner
dockerfile: Dockerfile
volumes:
- ./coderunners/javascript_coderunner:/code
working_dir: /code
command: node main.js
python_service:
build:
context: ./coderunners/python_coderunner
dockerfile: Dockerfile
volumes:
- ./coderunners/python_coderunner:/code
working_dir: /code
command: python main.py
nextjs_service:
build:
context: .
dockerfile: Dockerfile
depends_on:
- cpp_service
- js_service
- python_service
ports:
- "3000:3000"
env_file:
- .env
environment:
DATABASE_URL= "DATABASE_URl"
volumes:
- /var/run/docker.sock:/var/run/docker.sock