-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose-validator-node.yml
86 lines (81 loc) · 2.34 KB
/
docker-compose-validator-node.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
version: "3"
x-logging:
&default-logging
options:
max-file: '1'
compress: 'false'
driver: local
networks:
autonity_network:
name: autonity_network
services:
autonity:
image: ghcr.io/autonity/autonity:${AUTONITY_NODE_RELEASE:-latest}
container_name: autonity
restart: always
networks:
autonity_network:
ipv4_address: ${DOCKER_SUBNET_PREFIX}.2
ports:
- ${SECURE_NETWORK_IP}:8545:8545
- ${SECURE_NETWORK_IP}:8546:8546
- 30303:30303
- 30303:30303/udp
- ${SECURE_NETWORK_IP}:6060:6060 #PPROF
- ${SECURE_NETWORK_IP}:6064:6064 #PROMETHEUS
volumes:
- ./.data/autonity_node:/autonity-chaindata
- ./.data/.autonity:/root/.autonity
# build:
# context: ./src/docker/autonity/
# dockerfile: Dockerfile
command:
- --datadir=/autonity-chaindata
- --${NETWORK_NAME}
- --http
- --http.addr=0.0.0.0
- --http.api=aut,eth,net,txpool,web3,admin
- --http.vhosts=*
- --ws
- --ws.addr=0.0.0.0
- --ws.api=aut,eth,net,personal,txpool,web3,admin
- --nat=extip:${EXTERNAL_IP}
- --metrics
- --metrics.addr=0.0.0.0
- --metrics.port=6064
- --metrics.expensive
- --pprof
autonity_oracle:
image: autonity-oracle-git:latest
container_name: autonity_oracle
restart: always
build:
context: ./src/docker/autoracle/
dockerfile: Dockerfile.${NETWORK_NAME}
networks:
autonity_network:
ipv4_address: ${DOCKER_SUBNET_PREFIX}.3
volumes:
- ./.data/autonity_oracle:/autoracle
- ./.data/.autonity/keystore:/autonity_keystore
# - ./.data/.autonity/keystore/${ORACLE_UTC_FILE}:/oracle.key:ro
command:
- -key.file=/autonity_keystore/oracle.key
- -key.password=${ORACLE_KEY_PASSWD}
- -ws=ws://autonity:8546
- -plugin.dir=/usr/local/bin/plugins/
- -plugin.conf=/autoracle/plugins-conf.yml
aut_client:
image: aut_client:${AUTONITY_AUT_CLIENT}
container_name: aut_client
restart: always
volumes:
- ./.data/.autonity:/root/.autonity
# - ./.data/.autonity/.autrc:/.autrc
- ./.data/autonity_node/autonity:/root/autonity_node
networks:
autonity_network:
ipv4_address: ${DOCKER_SUBNET_PREFIX}.4
build:
context: ./src/docker/aut_client/
dockerfile: Dockerfile