-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
96 lines (89 loc) · 4.26 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
version: "3"
services:
memprof:
image: tezedge/tezedge-memprof:${TAG:-v1.6.9}
build:
context: .
dockerfile: Dockerfile.memprof
privileged: true
init: true
environment:
- TEZEDGE_NODE_NAME=tezedge-debugger_tezedge-node_1
volumes:
- "/sys/kernel/debug:/sys/kernel/debug:rw"
- "/proc:/proc:rw"
- "/var/run/docker.sock:/var/run/docker.sock:rw"
ports:
- "17832:17832"
debugger:
image: tezedge/tezedge-debugger:${TAG:-v1.6.9}
build:
context: .
dockerfile: Dockerfile
privileged: true
init: true
environment:
- RUST_BACKTRACE=1
volumes:
- "tezedge-shared-data:/tmp/volume/tezedge:ro"
- "ocaml-shared-data:/tmp/volume/tezos:ro"
# /var/lib/docker/volumes/remote-workspace/_data/tezedge-debugger
- "/var/lib/docker/volumes/remote-workspace/_data/tezedge-debugger/config-docker.toml:/etc/config.toml:ro"
- "/sys/kernel/debug:/sys/kernel/debug:rw"
ports:
- "17732:17732" # debugger RPC port compatibility server
- "17742:17742" # debugger RPC port for tezos node
- "17743:17743" # debugger RPC port for tezos node
- "10000:10000/udp" # debugger syslog port for tezedge node
- "11001:10001/udp" # debugger syslog port for tezos node
tezedge-node:
image: tezedge/tezedge:${TAG:-v1.6.9}-frame-pointers-enabled
command: ["--network", "mainnet", "--log", "terminal", "file", "--log-file", "/tmp/tezedge/tezedge.log", "--tezos-context-storage", "irmin", "--peer-thresh-low", "30", "--peer-thresh-high", "45"]
depends_on:
- "memprof"
init: true
logging:
# Produce syslogs instead of terminal logs
driver: "syslog"
options:
# Send the logs to syslog (UDP only) server (running on debugger)
syslog-address: "udp://0.0.0.0:10000" # Port must match debugger syslog port in 'ports' section
# Always in same RFC 5424 format (with microseconds precision)
syslog-format: "rfc5424micro"
volumes:
- "tezedge-shared-data:/tmp/tezedge"
ports:
- "4927:4927" # node WS port (required only for tezedge)
- "9732:9732" # node P2P port
- "18732:18732" # node RPC port
- "3030:3030" # sandbox launcher port
ocaml-node:
image: tezos/tezos:v9-release
entrypoint: sh -c "sleep 5 && /usr/local/bin/entrypoint.sh tezos-node --cors-header='content-type' --cors-origin='*' --rpc-addr=[::]:18733 --net-addr=[::]:9733 --history-mode archive --network mainnet"
logging:
# Produce syslogs instead of terminal logs
driver: "syslog"
options:
# Send the logs to syslog (UDP only) server (running on debugger)
syslog-address: "udp://0.0.0.0:11001" # Port must match debugger syslog port in 'ports' section
# Always in same RFC 5424 format (with microseconds precision)
syslog-format: "rfc5424micro"
volumes:
- "ocaml-shared-data:/var/run/tezos/node"
ports:
# should be equal inside docker and outside, because the node tells this port in its connection message,
# that is how peers can connect to it later
- "9733:9733"
- "18733:18733" # node RPC port
explorer:
image: tezedge/tezedge-explorer:${TAG:-v1.6.9}
environment:
# need a better way to provide such information
- API=[{"id":"rust","name":"rust.localhost","http":"http://localhost:18732","p2p_port":9732,"features":[{"name":"ws","url":"ws://localhost:4927"},{"name":"debugger","url":"http://localhost:17732"},{"name":"resources/memory","memoryProfilerUrl":"http://localhost:17832"},{"name":"commit","id":""},{"name":"monitoring"},{"name":"resources/system","monitoringUrl":"http://localhost:38732/resources/tezedge"},{"name":"resources/storage"},{"name":"mempool"},{"name":"storage"},{"name":"network"},{"name":"logs"}]},{"id":"ocaml","name":"ocaml.localhost","http":"http://localhost:18733","p2p_port":9733,"features":[{"name":"debugger","url":"http://localhost:17732"},{"name":"monitoring"},{"name":"resources/system","monitoringUrl":"http://localhost:38732/resources/ocaml"},{"name":"resources/storage"},{"name":"mempool"},{"name":"network"},{"name":"logs"}]}]
ports:
- "80:80"
volumes:
tezedge-shared-data:
external: false
ocaml-shared-data:
external: false