forked from bryanlabs/cosmos-tax-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
118 lines (114 loc) · 2.93 KB
/
docker-compose.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
version: "3.9"
x-logging: &logging
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
tag: '{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}'
services:
postgres:
restart: "unless-stopped"
image: postgres:15-alpine
stop_grace_period: 1m
volumes:
- /etc/localtime:/etc/localtime:ro
# - postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=taxuser
- POSTGRES_PASSWORD=password
ports:
- 5432:5432/tcp
healthcheck:
test: ["CMD", "nc", "-z", "-v", "localhost", "5432"]
interval: 5s
timeout: 5s
retries: 5
networks:
default:
aliases:
- defiant
<<: *logging
indexer:
restart: "no"
image: ghcr.io/defiantlabs/cosmos-indexer:pr-420
user: defiant
stop_grace_period: 10s
volumes:
# - indexer:/var/lib/cosmos-indexer-index
- /etc/localtime:/etc/localtime:ro
depends_on:
postgres:
condition: service_healthy
links:
- postgres
networks:
default:
aliases:
- defiant
<<: *logging
command:
- /bin/sh
- -c
- |
cosmos-indexer index \
--log.pretty = true \
--log.level = debug \
--base.index-chain = false \
--base.start-block 2723300 \
--base.end-block 2723464 \
--base.throttling 0.005 \
--base.rpc-workers 4 \
--base.reindex true \
--base.prevent-reattempts true \
--base.api http://34.168.39.1:1317 \
--lens.rpc http://34.168.39.1:26657 \
--lens.account-prefix osmo \
--lens.chain-id osmosis-1 \
--lens.chain-name osmosis \
--database.host postgres \
--database.database postgres \
--database.user taxuser \
--database.password password
# client:
# restart: "unless-stopped"
# image: ghcr.io/defiantlabs/cosmos-indexer:sha-56866e1
# user: defiant
# stop_grace_period: 1m
# volumes:
# # - client:/var/lib/cosmos-indexer-client
# - /etc/localtime:/etc/localtime:ro
# depends_on:
# postgres:
# condition: service_healthy
# links:
# - postgres
# ports:
# - 8080:8080/tcp
# networks:
# default:
# aliases:
# - defiant
# <<: *logging
# command: /bin/sh -c "client --db.host postgres --db.database postgres --db.user taxuser --db.password password"
# web:
# restart: "unless-stopped"
# image: ghcr.io/defiantlabs/cosmos-indexer-web:v0.1.0
# # user: defiant
# stop_grace_period: 1m
# volumes:
# # - web:/var/lib/cosmos-indexer-web
# - /etc/localtime:/etc/localtime:ro
# depends_on:
# postgres:
# condition: service_healthy
# environment:
# - REACT_APP_API_URL=http://localhost:8080
# ports:
# - 3000:3000/tcp
# networks:
# default:
# aliases:
# - defiant
# <<: *logging
# command: /bin/sh -c "npm run start"