forked from make-software/casper-nctl-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (59 loc) · 1.62 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
version: '3'
services:
mynctl:
image: killianh/nctl:latest
container_name: mynctl
ports:
- 11101-11105:11101-11105
- 14101-14105:14101-14105
- 18101-18105:18101-18105
environment:
PREDEFINED_ACCOUNTS: 'true'
#PATH_TO_CONFIG_TOML: '/home/casper/config.toml'
#PATH_TO_CHAINSPEC: '/home/casper/chainspec.toml'
MINIMUM_ROUND_EXPONENT: '12'
MAXIMUM_ROUND_EXPONENT: '14'
DEPLOY_DELAY: '5sec'
redisnctl:
image: redis:latest
container_name: redisnctl
dbnctl:
image: postgres:latest
container_name: dbnctl
restart: always
environment:
POSTGRES_HOST_AUTH_METHOD: 'trust'
POSTGRES_DB: 'api'
api:
build:
context: ../casperholdersapi
container_name: testnet-api
ports:
- 19101:3000
depends_on:
- redisnctl
- dbnctl
- mynctl
environment:
CASPER_RPC_URL: 'http://mynctl:11101/rpc'
ORIGIN: 'http://localhost:8080'
DATA_API: 'https://data.testnet.casperholders.com'
NODE_ENV: 'production'
NETWORK: 'casper-net-1'
ACCOUNT_INFO_HASH: '2f36a35edcbaabe17aba805e3fae42699a2bb80c2e0c15189756fdc4895356f8'
ACCOUNT_INFO_PACKAGE: 'b37227b83822aba42c72e9ee441e681f102929d608c7acf28d4bc2024dca0215'
REDIS_HOST: 'redisnctl'
REDIS_PORT: 6379
DASHBOARD_PORT: 3001
DATABASE_URL: 'postgres://postgres@dbnctl:5432/api'
cors-anywhere:
container_name: cors-anywhere
profiles: ["cors-anywhere"]
build:
context: ./cors
dockerfile: cors-anywhere.Dockerfile
tty: true
environment:
PORT: 11100
ports:
- 11100:11100