-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (79 loc) · 2 KB
/
Copy pathdocker-compose.yml
File metadata and controls
86 lines (79 loc) · 2 KB
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
version: '3.8'
services:
stellar-node:
image: stellar/quickstart:testing
command: --standalone --enable-soroban-rpc
ports:
- "8000:8000"
- "11626:11626"
healthcheck:
test: ["CMD-SHELL", "curl -s http://localhost:8000/friendbot | grep -q '\"status\": 400'"]
interval: 5s
timeout: 5s
retries: 15
volumes:
- stellar-data:/opt/stellar
redis:
image: redis:7-alpine
ports:
- "6379:6379"
indexer:
image: node:20-alpine
working_dir: /workspace
command: sh -lc "corepack enable && pnpm install --frozen-lockfile && pnpm dev -w iln-indexer"
depends_on:
stellar-node:
condition: service_healthy
volumes:
- .:/workspace
environment:
PORT: 3001
DB_PATH: /workspace/indexer.db
RPC_URL: http://stellar-node:8000/soroban/rpc
REDIS_URL: redis://redis:6379
ports:
- "3001:3001"
contract-deployer:
build:
context: ./contract-deployer
depends_on:
stellar-node:
condition: service_healthy
volumes:
- .:/workspace
working_dir: /workspace
oracle-service:
image: node:20-alpine
working_dir: /workspace
command: sh -lc "corepack enable && pnpm install --frozen-lockfile && pnpm oracle:dev"
depends_on:
stellar-node:
condition: service_healthy
indexer:
condition: service_started
redis:
condition: service_started
volumes:
- .:/workspace
environment:
ORACLE_PORT: 3010
INDEXER_BASE_URL: http://indexer:3001
REDIS_URL: redis://redis:6379
ORACLE_CACHE_TTL_SECONDS: 300
ORACLE_REQUEST_TIMEOUT_MS: 3500
ORACLE_MAX_ORACLE_AGE_MS: 300000
ports:
- "3010:3010"
account-seeder:
build:
context: ./account-seeder
depends_on:
contract-deployer:
condition: service_completed_successfully
stellar-node:
condition: service_healthy
volumes:
- .:/workspace
working_dir: /workspace
volumes:
stellar-data: