-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
54 lines (43 loc) · 1.17 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
version: "3.5"
x-common-environment: &common-environment
image: node:16
user: node
working_dir: /app
volumes:
- ./backend:/app
restart: on-failure
environment:
REDIS_HOST: "redis"
CHAIN_ID: "137"
RPC_URL: "https://polygon-rpc.com"
depends_on:
- redis
services:
api:
<<: *common-environment
ports:
- 3000:3000
command: "npm run start"
general_reserves_data_loader:
<<: *common-environment
command: "npm run job:update-general-reserves-data"
reserves_incentives_data_loader:
<<: *common-environment
command: "npm run job:update-reserve-incentives-data"
user_incentives_data_loader:
<<: *common-environment
command: "npm run job:update-users-incentives-data"
user_data_loader:
<<: *common-environment
command: "npm run job:update-users-data"
stake_user_ui_data_loader:
<<: *common-environment
command: "npm run job:update-stake-user-ui-data"
stake_general_ui_data_loader:
<<: *common-environment
command: "npm run job:update-stake-general-ui-data"
block_number_loader:
<<: *common-environment
command: "npm run job:update-block-number"
redis:
image: redis:6-alpine