forked from massbitprotocol/massbitprotocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
127 lines (119 loc) · 3.4 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
127 lines (119 loc) · 3.4 KB
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
version: '3'
services:
ipfs:
image: ipfs/go-ipfs:v0.4.23
ports:
- '5001:5001'
postgres:
build: deployment/store
ports:
- '5432:5432'
command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"]
environment:
POSTGRES_USER: graph-node
POSTGRES_PASSWORD: let-me-in
POSTGRES_DB: graph-node
volumes:
- ./data/postgres-massbit:/var/lib/postgresql/data
metabase:
build: deployment/metabase
restart: always
entrypoint: [ "./init.sh" ]
ports:
- 3002:3000
environment:
MB_DB_TYPE: postgres
MB_DB_DBNAME: graph-node
MB_DB_PORT: 5432
MB_DB_USER: graph-node
MB_DB_PASS: let-me-in
MB_DB_HOST: postgres
depends_on:
- postgres
hasura:
image: hasura/graphql-engine:v2.0.1
ports:
- "8080:8080"
depends_on:
- "postgres"
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgresql://graph-node:let-me-in@postgres:5432/graph-node
HASURA_GRAPHQL_DEV_MODE: "true"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
hasura-console:
image: sprise/hasura-console:0.1
ports:
- "3000:3000"
- "3001:3001"
depends_on:
- "postgres"
restart: always
environment:
NODE_ENV: development
PORT: 3000
CDN_ASSETS: "true"
ASSETS_PATH: https://graphql-engine-cdn.hasura.io/console/assets
ASSETS_VERSION: channel/stable/v1.0
ENABLE_TELEMETRY: "true"
URL_PREFIX: /
DATA_API_URL: http://localhost:8080
# DATA_API_URL: http://161.97.86.197:8080
SERVER_VERSION: v1.0.0
CONSOLE_MODE: server
ADMIN_SECRET: massbit
code-compiler:
image: sprise/code-compiler:latest
ports:
- "5000:5000"
environment:
# Pointing to our IPFS container
IPFS_URL: /dns/ipfs/tcp/5001/http
# Pointing to our Index Manager container
INDEX_MANAGER_URL: http://indexer:3030
chain-reader:
image: sprise/chain-reader:latest
ports:
- "50051:50051"
restart: always
environment:
# Log config
RUST_LOG_TYPE: file
RUST_LOG: debug
volumes:
# Mount the log to host, so we can monitor the process
- ./log:/log
indexer:
image: sprise/indexer:latest
ports:
- "3030:3030"
depends_on:
- "chain-reader"
restart: always
environment:
# Pointing to our chain-reader container
CHAIN_READER_URL: http://chain-reader:50051
# Pointing to our hasura container
HASURA_URL: http://hasura:8080/v1/query
# Pointing to our postgres container (the last param is the postgres container name)
DATABASE_CONNECTION_STRING: postgres://graph-node:let-me-in@postgres
# Pointing to our IPFS container
IPFS_ADDRESS: ipfs:5001
# Log config
RUST_LOG_TYPE: file
RUST_LOG: debug
volumes:
# Mount the log to host, so we can monitor the process
- ./log:/log
dashboard:
image: sprise/dashboard:1.3
ports:
- "8088:8088"
# environment:
# VUE_APP_INDEX_MANAGER_URL: http://161.97.86.197:3030
# VUE_APP_HASURA_URL: http://161.97.86.197:3000
# VUE_APP_CODE_COMPILER_URL: http://161.97.86.197:5000
depends_on: # Dashboard App will call to indexer to get indexer detail & code-compiler to compile and deploy new index
- "hasura-console"
- "indexer"
- "code-compiler"