-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yaml
139 lines (134 loc) · 3.68 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
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-tax-cli:main
user: defiant
stop_grace_period: 10s
volumes:
# - indexer:/var/lib/cosmos-tax-cli-index
- /etc/localtime:/etc/localtime:ro
depends_on:
postgres:
condition: service_healthy
links:
- postgres
networks:
default:
aliases:
- defiant
<<: *logging
command:
- /bin/sh
- -c
- |
cosmos-tax-cli update-denoms \
--update-all \
--log.pretty = true \
--log.level = debug \
--base.index-chain = false \
--base.start-block 11569404 \
--base.end-block -1 \
--base.throttling 2.005 \
--base.rpc-workers 1 \
--base.reindex true \
--base.prevent-reattempts true \
--base.api https://a-osmosis--changeme.gw.notionalapi.com:443 \
--lens.rpc https://r-osmosis--changeme.gw.notionalapi.com:443 \
--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
cosmos-tax-cli index \
--log.pretty = true \
--log.level = debug \
--base.index-chain = false \
--base.start-block 11569404 \
--base.end-block -1 \
--base.throttling 2.005 \
--base.rpc-workers 1 \
--base.reindex true \
--base.prevent-reattempts true \
--base.api https://a-osmosis--changeme.gw.notionalapi.com:443 \
--lens.rpc https://r-osmosis--changeme.gw.notionalapi.com:443 \
--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-tax-cli:sha-56866e1
# user: defiant
# stop_grace_period: 1m
# volumes:
# # - client:/var/lib/cosmos-tax-cli-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-tax-cli-web:v0.1.0
# # user: defiant
# stop_grace_period: 1m
# volumes:
# # - web:/var/lib/cosmos-tax-cli-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"