-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
73 lines (73 loc) · 1.91 KB
/
docker-compose.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
version: '3.1'
services:
db:
image: postgres:12.3
shm_size: 1g
user: "1000:1000"
volumes:
- ./data:/var/lib/postgresql/data
restart: always
environment:
POSTGRES_PASSWORD: password
tx-indexer-poller:
image: likechain/tx-indexer
depends_on:
- db
volumes:
- ./serviceAccountKey.json:/serviceAccountKey.json
environment:
GOOGLE_APPLICATION_CREDENTIALS: /serviceAccountKey.json
restart: always
command: [
"tx-indexer", "serve", "poller",
"--postgres-db", "postgres",
"--postgres-host", "db",
"--postgres-port", "5432",
"--postgres-user", "postgres",
"--postgres-pwd", "password",
"--lcd-endpoint", "http://somwehere:1317",
"--pubsub-project-id", "project-id",
"--pubsub-topic", "",
"--pubsub-chain-id", "likecoin-mainnet-2",
]
tx-indexer-http:
image: likechain/tx-indexer
depends_on:
- db
ports:
- 8997:8997
environment:
GIN_MODE: release
command: [
"tx-indexer", "serve", "http",
"--postgres-db", "postgres",
"--postgres-host", "db",
"--postgres-port", "5432",
"--postgres-user", "postgres",
"--postgres-pwd", "password",
"--lcd-endpoint", "http://somewhere:1317",
"--listen-addr", ":8997",
]
restart: always
import-tx:
profiles: ["scripts"]
image: likechain/tx-indexer
depends_on:
- db
# Note that no 'restart: always' here
volumes:
- /somewhere/likecoin-chain/.liked:/liked
command: [
"tx-indexer", "import",
"--postgres-db", "postgres",
"--postgres-host", "db",
"--postgres-port", "5432",
"--postgres-user", "postgres",
"--postgres-pwd", "password",
"--liked-path", "/liked"]
test-db:
profiles: ["scripts"]
image: postgres:12.3
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres_test