-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-fullnode.yaml
72 lines (68 loc) · 1.79 KB
/
docker-compose-fullnode.yaml
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
# This compose file defines an Aptos Fullnode deployment.
# Read the README.md files for instruction on how to install aptos-node
version: "3.8"
services:
haproxy:
image: haproxytech/haproxy-debian:2.2
volumes:
- type: bind
source: ./haproxy-fullnode.cfg
target: /usr/local/etc/haproxy/haproxy.cfg
- type: bind
source: ./blocked.ips
target: /usr/local/etc/haproxy/blocked.ips
networks:
- shared
expose:
# Public fullnode access
- 6182
# REST API
- 8080
# Fullnode metrics
- 9101
# Haproxy stats page
- 9102
ports:
- "6182:6182"
- "8080:8080"
# Only expose these internally
- "127.0.0.1:9101:9101"
- "127.0.0.1:9102:9102"
fullnode:
image: "${VALIDATOR_IMAGE_REPO:-aptoslabs/validator}:${IMAGE_TAG:-mainnet}"
networks:
shared:
volumes:
- type: volume
source: aptos-fullnode
target: /opt/aptos/data
- type: bind
source: ./fullnode.yaml
target: /opt/aptos/etc/fullnode.yaml
- type: bind
source: ./genesis.blob
target: /opt/aptos/genesis/genesis.blob
- type: bind
source: ./waypoint.txt
target: /opt/aptos/genesis/waypoint.txt
# - type: bind
# source: ./keys/validator-full-node-identity.yaml
# target: /opt/aptos/genesis/validator-full-node-identity.yaml
command: ["/usr/local/bin/aptos-node", "-f", "/opt/aptos/etc/fullnode.yaml"]
restart: unless-stopped
expose:
# Public fullnode access
- 6182
# REST API
- 8080
# Validator metrics
- 9101
networks:
shared:
name: "aptos-docker-compose-shared"
ipam:
config:
- subnet: 172.16.1.0/24
volumes:
aptos-fullnode:
name: aptos-fullnode