-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yaml
62 lines (62 loc) · 1.95 KB
/
docker-compose.yaml
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
services:
queue:
image: redis:latest
ports:
- "6379:6379"
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
volumes:
- queue_data:/data
command: redis-server --appendonly yes --requirepass ${REDIS_PASSWORD}
request_handler:
image: mysten/minting-server-request-handler:latest
depends_on:
- queue
volumes:
- .:/usr/src/minting_server/request_handler
ports:
- "3000:3000"
environment:
- REDIS_HOST=queue
- REDIS_PORT=6379
- REDIS_PASSWORD=${REDIS_PASSWORD}
- BUFFER_SIZE=${BUFFER_SIZE}
- STALE_BUFFER_TIMEOUT_MS=${STALE_BUFFER_TIMEOUT_MS}
- NODE_ENV=development
request_processor:
image: mysten/minting-server-request-processor:latest
depends_on:
- queue
environment:
- REDIS_HOST=queue
- REDIS_PORT=6379
- REDIS_PASSWORD=${REDIS_PASSWORD}
- JOB_RETRIES=${JOB_RETRIES}
- JOB_RETRY_DELAY=${JOB_RETRY_DELAY}
- PACKAGE_ADDRESS=${PACKAGE_ADDRESS}
- MODULE_NAME=${MODULE_NAME}
- ADMIN_SECRET_KEY=${ADMIN_SECRET_KEY}
- ADMIN_CAP=${ADMIN_CAP}
- ADMIN_ADDRESS=${ADMIN_ADDRESS}
- PTE_COIN_BATCH_SIZE=${PTE_COIN_BATCH_SIZE}
- PTE_INITIAL_COIN_BALANCE=${PTE_INITIAL_COIN_BALANCE}
- PTE_MINIMUM_COIN_BALANCE=${PTE_MINIMUM_COIN_BALANCE}
- PTE_MAX_POOL_SIZE=${PTE_MAX_POOL_SIZE}
- NETWORK=${NETWORK}
- BULLMQ_WORKER_CONCURRENCY=${BULLMQ_WORKER_CONCURRENCY}
- NODE_ENV=development
deploy:
mode: replicated
# Change the number of replicas to increase the number of request processors
# Warning! You will need a different admin account for each request processor
# because Sui's paralleltransactionexecutor assumes that there is only one instance
# of it per account.
replicas: 1
notifier:
image: mysten/minting-server-notifier:latest
depends_on:
- request_processor
ports:
- "3001:3001"
volumes:
queue_data: