-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
54 lines (52 loc) · 1.42 KB
/
docker-compose.yaml
File metadata and controls
54 lines (52 loc) · 1.42 KB
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
version: "3.8"
services:
tendermint: &tendermint
user: "1000"
mem_limit: 1024m
mem_reservation: 256M
cpus: 0.5
container_name: tm_0
hostname: tm_0
image: "valory/open-autonomy-tendermint:0.15.2"
restart: always
environment:
- ID=0
- PROXY_APP=tcp://localhost:26658
- TMHOME=/tendermint/node0
- CREATE_EMPTY_BLOCKS=true
- DEV_MODE=0
- LOG_FILE=node_0.txt
- LOG_LEVEL=INFO
- WRITE_TO_LOG=true
working_dir: /tendermint
command: ["run", "--no-reload", "--host=0.0.0.0", "--port=8080",]
ports:
- 8080:8080
- 26656:26656
- 26657:26657
network_mode: 'host'
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- tendermint:/tendermint/
depends_on:
- "tendermint-init"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 10s
timeout: 10s
retries: 3
tendermint-init:
# sudo rm -rf ~/.tendermint/ && sudo tendermint init validator && sudo chown -R 1000: ~/.tendermint && tendermint start
<<: *tendermint
container_name: tm_reset
hostname: tm_reset
entrypoint: ["/bin/sh", "-c"]
command: >
"rm -rf /tendermint/node0 && mkdir -p /tendermint/node0 && tendermint init validator && chown -R 1000:1000 /tendermint/ && echo 'reset done'"
restart: "no"
user: "0"
depends_on: []
ports: []
volumes:
tendermint: