This repository has been archived by the owner on Dec 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yaml
69 lines (64 loc) · 2.17 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
services:
indexer-db:
profiles: [scaling]
container_name: ${COMPOSE_PROJECT_NAME}-indexer-db
image: "mysql"
environment:
MYSQL_ROOT_PASSWORD: "root"
volumes:
- ./config/init.sql:/docker-entrypoint-initdb.d/db_init.sql
- indexer_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "--silent", "--host", "localhost", "-proot"]
timeout: 20s
retries: 10
indexer:
profiles: [scaling]
container_name: ${COMPOSE_PROJECT_NAME}-indexer
image: ghcr.io/flare-foundation/flare-system-c-chain-indexer:latest
volumes:
- ./mounts/indexer/config.toml:/app/config.toml
restart: unless-stopped
depends_on:
indexer-db:
condition: service_healthy
data-provider:
profiles: [scaling]
container_name: ${COMPOSE_PROJECT_NAME}-data-provider
image: ghcr.io/flare-foundation/ftso-scaling:latest
env_file:
- ./mounts/scaling/.env
command: "node dist/apps/ftso-data-provider/apps/ftso-data-provider/src/main.js"
stop_grace_period: 135s # Voting round 90s + reveal deadline 45s
depends_on:
- indexer
client:
profiles: [scaling]
container_name: ${COMPOSE_PROJECT_NAME}-client
image: ghcr.io/flare-foundation/flare-system-client:latest
volumes:
- ./mounts/client/config.toml:/app/config.toml
environment:
SYSTEM_CLIENT_SENDER_PRIVATE_KEY: ${SIGNING_PK}
SIGNING_POLICY_PRIVATE_KEY: ${SIGNING_PK}
PROTOCOL_MANAGER_SUBMIT_PRIVATE_KEY: ${SUBMIT_PK}
PROTOCOL_MANAGER_SUBMIT_SIGNATURES_PRIVATE_KEY: ${SIGNATURES_PK}
PROTOCOL_X_API_KEY_100: "abcdef"
stop_grace_period: 135s # Voting round 90s + reveal deadline 45s
depends_on:
- data-provider
- indexer
fast-updates:
profiles: [fast-updates]
container_name: ${COMPOSE_PROJECT_NAME}-fast-updates
image: ghcr.io/flare-foundation/fast-updates/go-client:latest
volumes:
- ./mounts/fast-updates/config.toml:/app/config.toml
environment:
SIGNING_PRIVATE_KEY: ${SIGNING_PK}
ACCOUNTS: ${FAST_UPDATES_ACCOUNTS}
SORTITION_PRIVATE_KEY: ${FAST_UPDATES_SORTITION_PRIVATE_KEY}
depends_on:
- indexer
volumes:
indexer_data: