forked from pantos-io/validatornode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
79 lines (76 loc) · 2.62 KB
/
docker-compose.override.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
networks:
pantos-validator-node:
pantos-validator-node-primary:
pantos-ethereum:
name: pantos-ethereum-${STACK_IDENTIFIER}-${ETHEREUM_NETWORK-1}
external: true
services:
app:
networks:
pantos-validator-node:
pantos-validator-node-primary:
pantos-ethereum:
entrypoint: sh -c 'set -a; . /etc/pantos/eth-data/ETHEREUM.env && . /etc/pantos/bnb-data/BNB_CHAIN.env; set +a; exec /usr/bin/pantos-validator-node-server'
environment:
PANTOS_ENV_FILE: /etc/pantos/validator-node-config.env
APP_PRIMARY_URL: http://validator-node-${STACK_IDENTIFIER}-1:8080
APP_URL: http://validator-node-${STACK_IDENTIFIER}-${INSTANCE-1}:8080
BNB_CHAIN_PRIVATE_KEY: /etc/pantos/bnb-data/keystore
ETHEREUM_PRIVATE_KEY: /etc/pantos/eth-data/keystore
volumes:
- type: volume
source: bnb-data
target: /etc/pantos/bnb-data
read_only: true
- type: volume
source: eth-data
target: /etc/pantos/eth-data
read_only: true
- type: bind
source: ./validator-node-config.docker.env
target: /etc/pantos/validator-node-config.env
read_only: true
develop:
watch:
- action: sync+restart
path: validator-node-config.docker.env
target: /root/validator-node-config.docker.env
worker:
networks:
pantos-validator-node:
pantos-validator-node-primary:
pantos-ethereum:
entrypoint: sh -c 'set -a; . /etc/pantos/eth-data/ETHEREUM.env && . /etc/pantos/bnb-data/BNB_CHAIN.env; set +a; exec /usr/bin/pantos-validator-node-celery'
environment:
PANTOS_ENV_FILE: /etc/pantos/validator-node-config.env
APP_URL: http://validator-node-${STACK_IDENTIFIER}-${INSTANCE-1}:8080
BNB_CHAIN_PRIVATE_KEY: /etc/pantos/bnb-data/keystore
ETHEREUM_PRIVATE_KEY: /etc/pantos/eth-data/keystore
PANTOS_STATUS_MONITOR: 1
ports:
- 556${INSTANCE-0}:5555
volumes:
- type: volume
source: bnb-data
target: /etc/pantos/bnb-data
read_only: true
- type: volume
source: eth-data
target: /etc/pantos/eth-data
read_only: true
- type: bind
source: ./validator-node-config.docker.env
target: /etc/pantos/validator-node-config.env
read_only: true
develop:
watch:
- action: sync+restart
path: validator-node-config.docker.env
target: /root/validator-node-config.docker.env
volumes:
bnb-data:
name: bnb-data-${STACK_IDENTIFIER}-${ETHEREUM_NETWORK-1}
external: true
eth-data:
name: eth-data-${STACK_IDENTIFIER}-${ETHEREUM_NETWORK-1}
external: true