-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
97 lines (86 loc) · 2.03 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
########## Defaults #############
x-defaults: &defaults
image: "${OL_IMAGE}"
restart: "on-failure"
network_mode: host # Fixme (nourspace): required to detect node processes?
pid: host # Fixme (nourspace): required to detect node processes?
volumes:
- "node_data:/root/.libra"
- "node_source:/root/libra-framework"
- "node_recovery:/root/libra-recovery"
ulimits:
nproc: 500000
nofile: 500000
entrypoint: [ "" ]
environment:
RUST_LOG: info
env_file:
- "./.env"
x-util-defaults: &util-defaults
<<: *defaults
restart: "no"
command: [ "tail", "-f", "/dev/null" ]
###########################################
version: "3.8"
services:
########## Main services #############
node:
<<: *defaults
container_name: "0l-${OL_NODE_MODE}"
command:
[
"libra",
"node",
"--config-path",
"/root/.libra/validator.yaml"
]
ports:
- "6180:6180"
- "6181:6181"
- "6182:6182"
- "8080:8080"
- "9101:9101"
# tower:
# <<: *defaults
# container_name: 0l-tower
# command: "tower ${OL_TOWER_OPERATOR} ${OL_TOWER_USE_FIRST_UPSTREAM} ${OL_TOWER_VERBOSE} start"
# environment:
# NODE_ENV: "prod"
# TEST: "${OL_TOWER_TEST-n}"
# monitor:
# <<: *defaults
# container_name: 0l-monitor
# command: [ "ol", "serve" ]
# ports:
# - "3030:3030"
########## Utility services #############
shell:
<<: *util-defaults
container_name: 0l-shell
source:
<<: *util-defaults
image: "${OL_IMAGE}-source"
container_name: 0l-source
builder:
<<: *util-defaults
image: "${OL_IMAGE}-builder"
container_name: 0l-builder
volumes:
node_data:
driver: local
driver_opts:
type: none
o: bind
device: "${OL_DATA_DIR}"
node_source:
driver: local
driver_opts:
type: none
o: bind
device: "${OL_SOURCE_DIR}"
node_recovery:
driver: local
driver_opts:
type: none
o: bind
device: "${OL_RECOVERY_DIR}"