-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
46 lines (41 loc) · 1.14 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
version: "2"
networks:
app-tier:
driver: bridge
services:
mongodb:
image: 'mvertes/alpine-mongo'
ports:
- '27017:27017'
# volumes:
# - './dbdata:/data/db'
networks:
- app-tier
nuchain-node:
image: 'anvie/nuchain:latest'
ports:
- '9933:9933'
- '9944:9944'
- '30333:30333'
# volumes:
# - '/tmp/nuchain-testnet:/data'
# command: 'nuchain --base-path=/data --rpc-cors="*" --chain=testnet --bootnodes=/ip4/103.20.197.200/tcp/30334/p2p/12D3KooWKdzrF2aY7ZofjsPS65qBFZm2Xgr2VT3VS8u2ECq24TVw --pruning=archive --rpc-external --ws-external --rpc-methods=Unsafe'
command: 'nuchain --base-path=/data --rpc-cors="*" --dev --rpc-external --ws-external --rpc-methods=Unsafe'
networks:
- app-tier
api-server:
image: 'node:current-alpine3.12'
environment:
- NUCHAIN_WS_SOCKET_URL=ws://nuchain-node:9944
- MONGODB_URI=mongodb://mongodb:27017
volumes:
- './:/arascan'
working_dir: '/arascan'
ports:
- '8089:8089'
command: 'yarn start:api-server --listen-all'
networks:
- app-tier
# volumes:
# dbdata:
# driver: local