-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
78 lines (74 loc) · 2.29 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
# IMPORTANT
#
# This is a simple example showcasing how each component of the system can be separated and thus
# individually scaled. However, it still makes use of a local shared folder on the same machine,
# making such a separation largely pointless.
#
# For production workload you'd probably want to deploy the services on different machines via
# something like Docker Swarm or Kubernetes. This file only serves to demonstrate the concept.
version: "3.8"
services:
reader:
image: "starknet/firestark:0.2.1-pathfinder-0.10.6"
user: "root"
command:
- "--config-file"
- ""
- "start"
- "reader-node"
- "--common-one-block-store-url"
- "file:///firehose-data/storage/one-blocks"
- "--reader-node-path"
- "pathfinder"
- "--reader-node-arguments"
- "--data-directory /pathfinder-data --ethereum.url ${ETHEREUM_URL}"
volumes:
- "./firehose-data:/firehose-data"
- "./pathfinder-data:/pathfinder-data"
merger:
image: "starknet/firestark:0.2.1"
command:
- "--config-file"
- ""
- "start"
- "merger"
- "--common-one-block-store-url"
- "file:///firehose-data/storage/one-blocks"
- "--common-merged-blocks-store-url"
- "file:///firehose-data/storage/merged-blocks"
- "--common-forked-blocks-store-url"
- "file:///firehose-data/storage/forked-blocks"
volumes:
- "./firehose-data:/firehose-data"
relayer:
image: "starknet/firestark:0.2.1"
command:
- "--config-file"
- ""
- "start"
- "relayer"
- "--common-one-block-store-url"
- "file:///firehose-data/storage/one-blocks"
- "--relayer-source"
- "reader:10010"
volumes:
- "./firehose-data:/firehose-data"
firehose:
image: "starknet/firestark:0.2.1"
command:
- "--config-file"
- ""
- "start"
- "firehose"
- "--common-one-block-store-url"
- "file:///firehose-data/storage/one-blocks"
- "--common-merged-blocks-store-url"
- "file:///firehose-data/storage/merged-blocks"
- "--common-forked-blocks-store-url"
- "file:///firehose-data/storage/forked-blocks"
- "--common-live-blocks-addr"
- "relayer:10014"
ports:
- "10015:10015"
volumes:
- "./firehose-data:/firehose-data"