-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
79 lines (76 loc) · 2.01 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
services:
autonity:
image: ${TAG}
container_name: autonity
restart: always
env_file:
- $HOME/autonity-node/.env
volumes:
- ${DATADIR}:/autonity-chaindata
- ${DATADIR_ANCIENT}:/autonity-chaindata/autonity/chaindata/ancient
command: >
--datadir=/autonity-chaindata
--datadir.ancient=/autonity-chaindata/autonity/chaindata/ancient
--syncmode ${SYNCMODE}
--${CHAIN}
--maxpeers=${PEERS}
--http
--http.api="aut,eth,net,txpool,web3,admin"
--http.vhosts="*"
--http.addr=${HTTP_ADDR}
--http.port=8545
--ws
--ws.api="aut,eth,net,txpool,web3,admin"
--ws.addr=${WS_ADDR}
--ws.port=8546
--nat extip:${YOUR_IP}
--metrics
--metrics.addr=${METRICS_ADDR}
--metrics.port=6060
--bootnodes=${BOOTNODES}
ports:
- ${HTTP_PORT}:8545 # rpc json
- ${WS_PORT}:8546 # websocket
- ${METRICS_PORT}:6060 # metrics
- ${BOOTNODES_PORT}:30303/tcp # bootnodes
- ${BOOTNODES_PORT}:30303/udp # bootnodes
- 20203:20203
logging:
driver: json-file
options:
max-size: "500m"
max-file: "20"
networks:
- autonity_network
autonity_oracle:
image: ${ORACLE_TAG}
container_name: autonity_oracle
restart: always
depends_on:
- autonity
env_file:
- $HOME/autonity-node/.env
volumes:
- ${ORACLE_KEYFILE}:/autoracle/oracle.key
- ${ORACLE_PLUGIN}:/autoracle/plugins-conf.yml
# - ${ORACLE_PLUGIN_DIR}:/usr/local/bin/plugins
command: >
--tip="1"
--key.file="/autoracle/oracle.key"
--key.password="${ORACLE_KEYPASS}"
--ws="ws://autonity:${WS_PORT}"
--plugin.dir="/usr/local/bin/plugins/"
--plugin.conf="/autoracle/plugins-conf.yml"
logging:
driver: json-file
options:
max-size: "500m"
max-file: "20"
networks:
- autonity_network
networks:
autonity_network:
external: false
driver: bridge
volumes:
autonity-chaindata: