-
Notifications
You must be signed in to change notification settings - Fork 3.5k
/
docker-compose.yaml
66 lines (61 loc) · 1.55 KB
/
docker-compose.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
# This compose file defines an Aptos Validator 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.cfg
target: /usr/local/etc/haproxy/haproxy.cfg
- type: bind
source: ./blocked.ips
target: /usr/local/etc/haproxy/blocked.ips
networks:
- shared
expose:
- 6180
- 6181
- 9101
- 80
ports:
- "6180:6180"
- "6181:6181"
- "80:80"
- "9101:9101"
validator:
image: "${VALIDATOR_IMAGE_REPO:-aptoslabs/validator}:${IMAGE_TAG:-testnet}"
networks:
shared:
volumes:
- type: volume
source: aptos-validator
target: /opt/aptos/data
- type: bind
source: ./validator.yaml
target: /opt/aptos/etc/validator.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-identity.yaml
target: /opt/aptos/genesis/validator-identity.yaml
command: ["/usr/local/bin/aptos-node", "-f", "/opt/aptos/etc/validator.yaml"]
restart: unless-stopped
expose:
- 6180
- 6181
- 9101
- 80
networks:
shared:
name: "aptos-docker-compose-shared"
ipam:
config:
- subnet: 172.16.1.0/24
volumes:
aptos-validator:
name: aptos-validator