-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
87 lines (85 loc) · 2.15 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
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
indexer:
build:
dockerfile: packages/indexer/Dockerfile
context: .
links:
- backend
environment:
- BROLY_CONTRACT_ADDRESS=0x05a527197145ea9f40d683d1328e75b7f5bdf61d5ff9886f89ac7023873dcba9
- 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=0x05a527197145ea9f40d683d1328e75b7f5bdf61d5ff9886f89ac7023873dcba9
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: