-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
105 lines (103 loc) · 2.72 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: "3"
services:
redis:
image: redis:7.2.4-alpine
restart: always
ports:
- 6379:6379
command: redis-server
volumes:
- redis:/data
postgres:
image: postgres:14.11-alpine
restart: always
ports:
- 5432:5432
volumes:
- postgres:/var/lib/postgresql/data
- ./apps/backend/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=broly-user
- POSTGRES_DB=broly-db
backend:
build:
dockerfile: apps/backend/Dockerfile
context: .
ports:
- 8080:8080
links:
- redis
- postgres
restart: always
environment:
- POSTGRES_PASSWORD=password
- CONFIG_PATH=/configs/config.yaml
volumes:
- ./inscriptions:/app/inscriptions
consumer:
build:
dockerfile: apps/backend/Dockerfile.consumer
context: .
ports:
- 8081:8081
links:
- redis
- postgres
restart: always
environment:
- POSTGRES_PASSWORD=password
- CONFIG_PATH=/configs/config.yaml
inscriber:
build:
dockerfile: apps/backend/Dockerfile.inscriber
context: .
links:
- backend
- indexer
restart: always
environment:
- CONFIG_PATH=/configs/config.yaml
- SCRIPT_CONFIG_PATH=/configs/script-config.yaml
- KEYSTORE_PATH=/app/account/test.key
- ACCOUNT_FILE=/app/account/account.json
- BROLY_ORDERBOOK_CONTRACT_ADDRESS=0x04f68339f949e8307057c3e56f08d4f405f0d0b257c9b4d05ede4143e230bced
volumes:
- ./account:/app/account
indexer:
build:
dockerfile: packages/indexer/Dockerfile
context: .
links:
- backend
environment:
- BROLY_CONTRACT_ADDRESS=0x04f68339f949e8307057c3e56f08d4f405f0d0b257c9b4d05ede4143e230bced
- AUTH_TOKEN=${APIBARA_AUTH_TOKEN}
- CONSUMER_TARGET_URL=http://broly-consumer-1:8081/consume-indexer-msg
- APIBARA_STREAM_URL=https://sepolia.starknet.a5a.ch
- PERSIST_TO_REDIS=redis://broly-redis-1:6379
- INDEXER_ID=broly-indexer-id
restart: on-failure
depends_on:
- consumer
frontend:
build:
dockerfile: apps/web/Dockerfile
context: .
ports:
- 5173:5173
links:
- backend
environment:
- VITE_BROLY_CONTRACT_ADDRESS=0x04f68339f949e8307057c3e56f08d4f405f0d0b257c9b4d05ede4143e230bced
- VITE_USE_MOCK=false
volumes:
- ./package.json:/app/package.json
- ./pnpm-lock.yaml:/app/pnpm-lock.yaml
- ./pnpm-workspace.yaml:/app/pnpm-workspace.yaml
- ./apps/web/package.json:/app/apps/web/package.json
- ./apps/web/public/:/app/apps/web/public
- ./apps/web/src:/app/apps/web/src
volumes:
redis:
postgres: