forked from Soroban-Smart-Block-Explorer/Soroban-Smart-Block
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (83 loc) · 2.14 KB
/
Copy pathdocker-compose.yml
File metadata and controls
88 lines (83 loc) · 2.14 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
87
88
services:
postgres:
image: postgres:15-alpine
container_name: soroban-postgres
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=soroban
- POSTGRES_PASSWORD=soroban_secret
- POSTGRES_DB=soroban_explorer
healthcheck:
test: ["CMD-SHELL", "pg_isready -U soroban -d soroban_explorer"]
interval: 5s
timeout: 5s
retries: 5
stellar-quickstart:
image: stellar/quickstart:testing
container_name: soroban-quickstart
ports:
- "8000:8000"
command: --standalone --enable-soroban-rpc
healthcheck:
test: ["CMD-SHELL", "curl -s http://localhost:8000 || exit 1"]
interval: 10s
timeout: 5s
retries: 5
indexer:
build:
context: ./indexer
dockerfile: Dockerfile.dev
container_name: soroban-indexer
ports:
- "3001:3001"
volumes:
- ./indexer/src:/app/src
environment:
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/soroban_explorer
healthcheck:
test: ["CMD-SHELL", "curl -s -f http://localhost:3001/api/setup/status || exit 1"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
postgres:
condition: service_healthy
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
container_name: soroban-frontend
ports:
- "5173:5173"
volumes:
- ./frontend/src:/app/src
- ./frontend/public:/app/public
environment:
- VITE_API_URL=http://localhost:3001
healthcheck:
test: ["CMD-SHELL", "curl -s -f http://localhost:5173 || exit 1"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
indexer:
condition: service_healthy
seed:
image: node:18-alpine
container_name: soroban-seed
volumes:
- .:/app
working_dir: /app
command: sh -c "apk add make && make migrate && make deploy-contract && make register-abi"
depends_on:
postgres:
condition: service_healthy
stellar-quickstart:
condition: service_healthy
indexer:
condition: service_started
volumes:
pgdata: