-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.override.yml
84 lines (81 loc) · 2.68 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
80
81
82
83
84
networks:
pantos-service-node:
pantos-ethereum:
name: pantos-ethereum-${STACK_IDENTIFIER}-${ETHEREUM_NETWORK-1}
external: true
services:
app:
networks:
pantos-service-node:
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-service-node-server'
environment:
PANTOS_ENV_FILE: /etc/pantos/service-node-config.env
APP_URL: http://localhost:808${INSTANCE-1}
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: ./signer_key.pem
target: /etc/pantos/service-node-signer.pem
read_only: true
- type: bind
source: ./service-node-config.docker.env
target: /etc/pantos/service-node-config.env
read_only: true
develop:
watch:
- action: sync+restart
path: service-node-config.docker.env
target: /root/service-node-config.docker.env
worker:
networks:
pantos-service-node:
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-service-node-celery'
environment:
PANTOS_ENV_FILE: /etc/pantos/service-node-config.env
APP_URL: http://localhost:808${INSTANCE-1}
BNB_CHAIN_PRIVATE_KEY: /etc/pantos/bnb-data/keystore
ETHEREUM_PRIVATE_KEY: /etc/pantos/eth-data/keystore
PANTOS_STATUS_MONITOR: 1
ports:
- 555${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: ./signer_key.pem
target: /etc/pantos/service-node-signer.pem
read_only: true
- type: bind
source: ./service-node-config.docker.env
target: /etc/pantos/service-node-config.env
read_only: true
develop:
watch:
- action: sync+restart
path: service-node-config.docker.env
target: /root/service-node-config.docker.env
volumes:
bnb-data:
# Requires the same amount of instances as the servicenode
name: bnb-data-${STACK_IDENTIFIER}-${ETHEREUM_NETWORK-1}
external: true
eth-data:
name: eth-data-${STACK_IDENTIFIER}-${ETHEREUM_NETWORK-1}
external: true