forked from lfglabs-dev/api.sales.starknet.id
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
102 lines (94 loc) · 2.24 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
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
version: "3.6"
services:
etcd:
image: docker.io/bitnami/etcd:3.5
environment:
ALLOW_NONE_AUTHENTICATION: "yes"
volumes:
- etcd_data:/bitnami/etcd
indexer_sales:
image: quay.io/apibara/sink-mongo:0.4.4
depends_on:
- etcd
restart: always
ports:
- "8001:8001"
command:
- run
- --allow-env=/data/env
- /data/src/sales.ts
- --status-server-address=0.0.0.0:8001
- --max-message-size=1GB
- --timeout-duration-seconds=1200
volumes:
- ./indexer:/data/
environment:
PERSIST_TO_ETCD: http://etcd:2379
SINK_ID: sales-indexer
AUTH_TOKEN: dna_xxx
indexer_tax_txs:
image: quay.io/apibara/sink-mongo:0.4.4
depends_on:
- etcd
restart: always
ports:
- "8002:8002"
command:
- run
- --allow-env=/data/env
- /data/src/tax_txs.ts
- --status-server-address=0.0.0.0:8002
- --max-message-size=1GB
- --timeout-duration-seconds=1200
volumes:
- ./indexer:/data/
environment:
PERSIST_TO_ETCD: http://etcd:2379
SINK_ID: tax-txs-indexer
AUTH_TOKEN: dna_xxx
indexer_auto_renew:
image: quay.io/apibara/sink-mongo:0.4.4
depends_on:
- etcd
restart: always
ports:
- "8003:8003"
command:
- run
- --allow-env=/data/env
- /data/src/auto_renew_updates.ts
- --status-server-address=0.0.0.0:8003
- --max-message-size=1GB
- --timeout-duration-seconds=1200
volumes:
- ./indexer:/data/
environment:
PERSIST_TO_ETCD: http://etcd:2379
SINK_ID: auto-renew-updates-indexer
AUTH_TOKEN: dna_xxx
# sale_actions:
# container_name: sale_actions
# build:
# context: ./sale_actions/
# dockerfile: Dockerfile
# restart: always
api_endpoint:
container_name: api_endpoint
build:
context: ./api_endpoint/
dockerfile: Dockerfile
restart: always
nginx:
image: valian/docker-nginx-auto-ssl
restart: on-failure
ports:
- 80:80
- 443:443
volumes:
- ssl_data:/etc/resty-auto-ssl
environment:
ALLOWED_DOMAINS: "api.sales.starknet.id"
SITES: "api.sales.starknet.id=api_endpoint:8080"
volumes:
etcd_data:
ssl_data: