-
Notifications
You must be signed in to change notification settings - Fork 271
Expand file tree
/
Copy pathanchor.yml
More file actions
82 lines (79 loc) · 2.01 KB
/
anchor.yml
File metadata and controls
82 lines (79 loc) · 2.01 KB
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
x-logging: &logging
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
tag: '{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}'
services:
anchor:
restart: "unless-stopped"
build:
context: ./anchor
dockerfile: ${SSV_ANCHOR_DOCKERFILE}
args:
- DOCKER_TAG=${SSV_ANCHOR_TAG:-latest}
- DOCKER_REPO=${SSV_ANCHOR_REPO:-sigp/anchor}
image: anchor:local
pull_policy: never
user: 12000:12000
volumes:
- ./ssv-config:/config
- ssv-anchor-data:/var/lib/anchor
- /etc/localtime:/etc/localtime:ro
ports:
- ${HOST_IP:-}:${SSV_P2P_PORT}:${SSV_P2P_PORT}/tcp
- ${HOST_IP:-}:${SSV_P2P_PORT_UDP}:${SSV_P2P_PORT_UDP}/udp
- ${HOST_IP:-}:${SSV_QUIC_PORT}:${SSV_QUIC_PORT}/udp
environment:
- IPV6=${IPV6:-false}
- DVT_EXTRAS=${DVT_EXTRAS}
- SSV_P2P_PORT=${SSV_P2P_PORT}
- SSV_P2P_PORT_UDP=${SSV_P2P_PORT_UDP}
- SSV_QUIC_PORT=${SSV_QUIC_PORT}
- MEV_BOOST=${MEV_BOOST:-false}
- MEV_BUILD_FACTOR=${MEV_BUILD_FACTOR:-}
<<: *logging
entrypoint:
- docker-entrypoint.sh
- anchor
- node
- --datadir
- /var/lib/anchor
- --network
- ${NETWORK}
- --listen-addresses
- 0.0.0.0
- --port
- ${SSV_P2P_PORT}
- --discovery-port
- ${SSV_P2P_PORT_UDP}
- --quic-port
- ${SSV_QUIC_PORT}
- --beacon-nodes
- ${CL_NODE}
- --execution-rpc
- ${EL_RPC_NODE}
- --execution-ws
- ${EL_WS_NODE}
- --key-file
- /config/encrypted_private_key.json
- --password-file
- /config/password.pass
- --metrics
- --metrics-address
- 0.0.0.0
- --metrics-port
- "15000"
labels:
- metrics.scrape=true
- metrics.path=/metrics
- metrics.port=15000
- metrics.instance=ssv-anchor
- metrics.network=${NETWORK}
- logs.collect=true
volumes:
ssv-anchor-data:
networks:
default:
enable_ipv6: ${IPV6:-false}