forked from StellarDevHub/soroban-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (55 loc) · 1.19 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (55 loc) · 1.19 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
version: "3.9"
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- ./frontend:/app:cached
environment:
- CHOKIDAR_USEPOLLING=true
- NEXT_PUBLIC_WS_URL=ws://localhost:3001/ws/events
- NEXT_PUBLIC_INDEXER_URL=http://localhost:3001
depends_on:
- backend
- indexer
networks:
- soroban-net
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "5000:5000"
volumes:
- ./backend:/app:cached
environment:
- NODE_ENV=development
networks:
- soroban-net
indexer:
build:
context: ./indexer
dockerfile: Dockerfile
ports:
- "3001:3001"
volumes:
- ./indexer:/app:cached
- indexer-db:/app/data
environment:
- RUST_LOG=info
- DB_TYPE=sqlite
- DATABASE_URL=sqlite:///app/data/indexer.db
- WS_PORT=3001
- MAX_WS_CONNECTIONS=200
# Optional dual-write to Postgres:
# - SECONDARY_DATABASE_URL=postgres://user:pass@postgres:5432/indexer
networks:
- soroban-net
networks:
soroban-net:
driver: bridge
volumes:
indexer-db: