forked from b-n-space/0l-operations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (74 loc) · 1.77 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
########## 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/.0L"
- "epoch_archive:/root/epoch-archive"
ulimits:
nproc: 500000
nofile: 500000
entrypoint: [ "" ]
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:
[
"diem-node",
"--config",
"/root/.0L/${OL_NODE_MODE}.node.yaml"
]
ports:
- "6179:6179"
- "6180:6180"
- "8080:8080"
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}"
epoch_archive:
driver: local
driver_opts:
type: none
o: bind
device: "${OL_EPOCH_ARCHIVE_DIR}"