-
Notifications
You must be signed in to change notification settings - Fork 45
/
docker-compose.yml
82 lines (72 loc) · 1.83 KB
/
docker-compose.yml
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
version: '2'
services:
# # Python node
# node:
# extends:
# file: node.docker-compose.yml
# service: node
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# environment:
# NODE_DEBUGGER: "False"
#
# # entrypoint: ["/bin/bash"]
#
# # docker run -ti --entrypoint /bin/bash 9b6a81855c06
# # d-c run --entrypoint /bin/bash node-3
# # NODE_ID=3 NODE_TOTAL=4 POSSIBLE_FAILURES=1 NODE_HOST=teamproject16_node-{i}_1 NODE_PORT=4458 python main_node.py
node:
extends:
file: code/node_java/docker-compose.yml
service: node_java
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
NODE_DEBUGGER: "False"
NODE_DEBUG: "False"
# API_HOST: "http://192.168.0.42"
API_HOST: ${API_HOST}
api:
extends:
file: api.docker-compose.yml
service: api
ports:
- "80:80"
restart: "no"
command: ["python", "main_api.py"]
#entrypoint: []
#command: ["ls", "-la"]
web:
extends:
file: code/web/docker-compose.yml
service: web
environment:
PORT: 8000
# API_URL: "http://192.168.0.42"
API_URL: ${API_HOST}
ports:
- "8000:8000"
entrypoint: ["/entrypoint.sh"]
web_static:
extends:
file: code/web/docker-compose.yml
service: web
environment:
PORT: 8001
API_URL: "http://localhost:8001/example/"
# `${VM_HOST:-localhost}` will evaluate to `localhost` if $VM_HOST is unset or empty in the environment.
ports:
- "8001:8001"
entrypoint: ["/entrypoint.sh"]
postgres:
extends:
file: api.docker-compose.yml
service: postgres
#volumes:
# - /data/postgres:/data/postgres
postgres_browser:
extends:
file: api.docker-compose.yml
service: postgres_browser
ports:
- "8080:80"