forked from Tonomy-Foundation/civic-participation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (43 loc) · 1.2 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
version: '3'
# default network specified so that it does not clash with any VPN software running on the OS
# https://stackoverflow.com/a/56136591
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.16.57.0/24
volumes:
blockchain-data:
external:
name: blockchain-data
mongo-data:
external:
name: mongo-data
services:
dfuse:
build:
context: ./blockchain
container_name: "dfuse"
ports:
- 8080:8080
- 8081:8081
- 8888:8888
environment:
- EOSQ_ENDPOINT_URL=$EOSQ_ENDPOINT_URL
volumes:
- ./:/var/repo
- blockchain-data:/data
command: ["dfuseeos", "start", "--data-dir", "/data", "--search-common-dfuse-events-action-name=dfuseiohooks:event", "--search-common-dfuse-events-unrestricted=true", "--common-chain-id", "df383d1cc33cbb9665538c604daac13706978566e17e5fd5f897eff68b88e1e4", "--eosq-api-endpoint-url=${EOSQ_ENDPOINT_URL}"]
mongo:
image: mongo:4.2.7
container_name: 'mongodb'
ports:
- 27017:27017
environment:
- MONGO_DATA_DIR=/data
- MONGO_LOG_DIR=/data-logs
- MONGODB_USER="user"
- MONGODB_PASS="pass"
volumes:
- mongo-data:/data/db