-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
92 lines (84 loc) · 2.01 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
version: "3"
services:
bitcoind:
build: ./docker/bitcoin
#ports:
# - 18332:18332
volumes:
- $HOME/cyphernode/bitcoin/:/data/.bitcoin
networks:
- back
restart: always
postgres:
image: postgres:12
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgrespassword
networks:
- back
restart: always
bitcoind-zmq:
build: ./back/bitcoind-zmq
environment:
HASURA_SCHEMA_URL: http://graphql-engine:8080/v1/graphql
HASURA_PASS: secretkey
ZMQ_HASHBLOCK: tcp://bitcoind:3000
ZMQ_RAWBLOCK: tcp://bitcoind:3001
# ZMQ_RAWTX: tcp://bitcoind:3002
# ZMQ_HASHTX: tcp://bitcoind:3003
depends_on:
- "bitcoind"
- "postgres"
- "graphql-engine"
networks:
- back
restart: always
bitcoind-rpc:
build: ./back/bitcoind-rpc
environment:
# BITCOIND_RPC_PORT: 18443 #regtest
BITCOIND_RPC_PORT: 18332 #testnet
BITCOIND_RPC_HOST: 'bitcoind'
BITCOIND_RPC_USERNAME: 'paco'
BITCOIND_RPC_PASSWORD: 'paco'
depends_on:
- "bitcoind"
- "postgres"
networks:
- back
restart: always
graphql-engine:
image: hasura/graphql-engine:v1.1.0
ports:
- "8080:8080"
depends_on:
- "postgres"
- "bitcoind-rpc"
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_ADMIN_SECRET: secretkey
BITCOIND_RPC_ENDPOINT: http://bitcoind-rpc:9000/
networks:
- back
restart: always
# bitcoind-zmq-front:
# build: ./front/bitcoind-zmq
# ports:
# - "3001:3001"
# depends_on:
# - "bitcoind"
# - "postgres"
# - "graphql-engine"
# networks:
# - front
# restart: always
volumes:
db_data:
networks:
back:
external: true
front:
external: true