This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.nodes.yaml
64 lines (63 loc) · 2.83 KB
/
docker-compose.nodes.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
version: "2.4"
services:
nginx:
image: nginx:1.21.6-alpine
container_name: nginx
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf/:/etc/nginx/conf.d/:ro
- /etc/letsencrypt/:/etc/letsencrypt/:ro
full_node:
container_name: cere_full_node
image: cerebellumnetwork/pos-node:${VERSION}
restart: always
logging:
driver: "json-file"
options:
max-size: "20m"
ports:
- "9615:9615"
- "9944:9944"
- "9933:9933"
- "30333:30333"
volumes:
- ./spec-data:/cereio/spec-data
- ~/cere-data:/data
command: bash -c "/usr/local/bin/cere --prometheus-external --prometheus-port 9615 -l${LOG_LEVEL} --name ${NODE_NAME} --chain /cereio/spec-data/${SPEC_PATH}/customSpecRaw.json --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' --bootnodes /ip4/${BOOT_NODE_IP_ADDRESS}/tcp/30333/p2p/${NETWORK_IDENTIFIER} /ip4/${BOOT_NODE_IP_ADDRESS_2}/tcp/30333/p2p/${NETWORK_IDENTIFIER_2} --ws-port 9944 --ws-external --rpc-methods=Auto --rpc-cors all --rpc-external ${CUSTOM_PARAMETERS}"
archive_node:
container_name: cere_archive_node
image: cerebellumnetwork/pos-node:${VERSION}
restart: always
logging:
driver: "json-file"
options:
max-size: "20m"
ports:
- "9615:9615"
- "9944:9944"
- "9933:9933"
- "30333:30333"
volumes:
- ./spec-data:/cereio/spec-data
- ~/cere-data:/data
command: bash -c "/usr/local/bin/cere --prometheus-external --prometheus-port 9615 -l${LOG_LEVEL} --name ${NODE_NAME} --chain /cereio/spec-data/${SPEC_PATH}/customSpecRaw.json --pruning archive --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' --bootnodes /ip4/${BOOT_NODE_IP_ADDRESS}/tcp/30333/p2p/${NETWORK_IDENTIFIER} /ip4/${BOOT_NODE_IP_ADDRESS_2}/tcp/30333/p2p/${NETWORK_IDENTIFIER_2} --ws-port 9944 --rpc-methods=Unsafe --ws-external --unsafe-ws-external --rpc-cors all --rpc-external ${CUSTOM_PARAMETERS}"
validator_node:
container_name: cere_validator_node
image: cerebellumnetwork/pos-node:${VERSION}
restart: always
logging:
driver: "json-file"
options:
max-size: "20m"
ports:
- "9944:9944"
- "9933:9933"
- "30333:30333"
- "9615:9615"
volumes:
- ./spec-data:/cereio/spec-data
- ~/cere-data:/data
command: bash -c "/usr/local/bin/cere --prometheus-external --prometheus-port 9615 -l${LOG_LEVEL} --name ${NODE_NAME} --chain /cereio/spec-data/${SPEC_PATH}/customSpecRaw.json --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' --validator --bootnodes /ip4/${BOOT_NODE_IP_ADDRESS}/tcp/30333/p2p/${NETWORK_IDENTIFIER} /ip4/${BOOT_NODE_IP_ADDRESS_2}/tcp/30333/p2p/${NETWORK_IDENTIFIER_2} --ws-port 9944 --rpc-methods=Unsafe --ws-external --unsafe-ws-external --rpc-cors all --rpc-external ${CUSTOM_PARAMETERS}"