-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
132 lines (125 loc) · 3.18 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: '3'
services:
ingress:
build: ./ingress/
ports:
- 443:443
image: ingress
volumes:
- /etc/ssl:/etc/ssl
- static:/static
- media:/media
restart: on-failure
depends_on:
- api
- app
api_db:
image: postgres
volumes:
- db:/var/lib/postgresql/data
environment:
POSTGRES_DB: '${DB_NAME}'
POSTGRES_USER: '${DB_USER}'
POSTGRES_PASSWORD: '${DB_PASSWORD}'
api:
image: api
build: ./api
volumes:
- static:/static/
- media:/app/media/
environment:
SECRET_KEY: '${SECRET_KEY}'
DB_NAME: '${DB_NAME}'
DB_USER: '${DB_USER}'
DB_PASSWORD: '${DB_PASSWORD}'
DB_PORT: '5432'
DB_HOST: api_db
ADMIN_USER: '${ADMIN_USER}'
ADMIN_PASSWORD: '${ADMIN_PASSWORD}'
BSC_CHAIN_ID: '${BSC_CHAIN_ID}'
BSC_START_BLOCK: '${BSC_START_BLOCK}'
ETH_CHAIN_ID: '${ETH_CHAIN_ID}'
ETH_START_BLOCK: '${ETH_START_BLOCK}'
POLYGON_CHAIN_ID: '${POLYGON_CHAIN_ID}'
POLYGON_START_BLOCK: '${POLYGON_START_BLOCK}'
restart: on-failure
depends_on:
- api_db
bsc_indexer:
image: api
build: ./api
volumes:
- media:/app/media/
environment:
SECRET_KEY: '${SECRET_KEY}'
UPSTREAM: '${BSC_UPSTREAM}'
TOKEN_ABI_FILENAME: 'token_indexer/erc721-abi.json'
TOKEN_ADDRESS: '${BSC_TOKEN_ADDRESS}'
BRIDGE_ADDRESS: '${BSC_BRIDGE_ADDRESS}'
INDEXER_INTERVAL: '${INDEXER_INTERVAL}'
DB_NAME: '${DB_NAME}'
DB_USER: '${DB_USER}'
DB_PASSWORD: '${DB_PASSWORD}'
DB_PORT: '5432'
DB_HOST: api_db
IPFS_HOST: '${IPFS_HOST}'
command: python3 token_indexer/start.py
restart: on-failure
depends_on:
- api_db
polygon_indexer:
image: api
build: ./api
volumes:
- media:/app/media/
environment:
SECRET_KEY: '${SECRET_KEY}'
UPSTREAM: '${POLYGON_UPSTREAM}'
TOKEN_ABI_FILENAME: 'token_indexer/erc721-abi.json'
TOKEN_ADDRESS: '${POLYGON_TOKEN_ADDRESS}'
BRIDGE_ADDRESS: '${POLYGON_BRIDGE_ADDRESS}'
INDEXER_INTERVAL: '${INDEXER_INTERVAL}'
DB_NAME: '${DB_NAME}'
DB_USER: '${DB_USER}'
DB_PASSWORD: '${DB_PASSWORD}'
DB_PORT: '5432'
DB_HOST: api_db
IPFS_HOST: '${IPFS_HOST}'
command: python3 token_indexer/start.py
restart: on-failure
depends_on:
- api_db
eth_indexer:
image: api
build: ./api
volumes:
- media:/app/media/
environment:
SECRET_KEY: '${SECRET_KEY}'
UPSTREAM: '${ETH_UPSTREAM}'
TOKEN_ABI_FILENAME: 'token_indexer/erc721-abi.json'
TOKEN_ADDRESS: '${ETH_TOKEN_ADDRESS}'
BRIDGE_ADDRESS: '${ETH_BRIDGE_ADDRESS}'
INDEXER_INTERVAL: '${INDEXER_INTERVAL}'
DB_NAME: '${DB_NAME}'
DB_USER: '${DB_USER}'
DB_PASSWORD: '${DB_PASSWORD}'
DB_PORT: '5432'
DB_HOST: api_db
IPFS_HOST: '${IPFS_HOST}'
command: python3 token_indexer/start.py
restart: on-failure
depends_on:
- api_db
app:
image: app
build:
context: ./app
dockerfile: Dockerfile
args:
REACT_APP_API_HOST: '${REACT_APP_API_HOST}'
restart: on-failure
volumes:
static:
db:
media: