forked from lightningdevkit/rapid-gossip-sync-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (72 loc) · 1.92 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
version: "3"
services:
rgs_server:
build:
context: '$PWD'
dockerfile: '$PWD/docker/Dockerfile.rgs'
volumes:
- '$PWD:/usr/src/app:cached'
links:
- postgres
- bitcoin-core
depends_on:
- postgres
environment:
- RAPID_GOSSIP_SYNC_SERVER_DB_HOST=postgres
- RAPID_GOSSIP_SYNC_SERVER_DB_USER=lightning-rgs
- RAPID_GOSSIP_SYNC_SERVER_DB_PASSWORD=docker
- RAPID_GOSSIP_SYNC_SERVER_DB_NAME=ln_graph_sync
- BITCOIN_REST_DOMAIN=bitcoin-core
- BITCOIN_REST_PORT=8332
- BITCOIN_REST_PATH=/rest/
command: 'cargo run'
postgres:
image: 'postgres:12-alpine'
ports:
- 5432:5432
volumes:
- postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=lightning-rgs
- POSTGRES_PASSWORD=docker
- POSTGRES_DB=ln_graph_sync
bitcoin-core:
container_name: bitcoin-core
image: ruimarinho/bitcoin-core:alpine
restart: always
ports:
- "0.0.0.0:8332:8332"
- "0.0.0.0:8333:8333"
volumes:
- /etc/localtime:/etc/localtime:ro
- .bitcoin:/home/bitcoin/.bitcoin
command:
- "-printtoconsole"
- "-rpcallowip=0.0.0.0/0"
- "-rpcbind=0.0.0.0"
- "-rpcuser=vault"
- "-rpcpassword=vault"
- "-rpcport=8332"
- "-rest"
# Comment Out Below for Testnet. You'll also need to change BITCOIN_REST_PORT to 18332
# bitcoin-core:
# container_name: bitcoin-core
# image: ruimarinho/bitcoin-core:alpine
# restart: always
# ports:
# - "0.0.0.0:18332:18332"
# - "0.0.0.0:18332:18333"
# volumes:
# - /etc/localtime:/etc/localtime:ro
# - .bitcoin:/home/bitcoin/.bitcoin
# command:
# - "-printtoconsole"
# - "-testnet"
# - "-rpcallowip=0.0.0.0/0"
# - "-rpcbind=0.0.0.0"
# - "-rpcuser=vault"
# - "-rpcpassword=vault"
# - "-rpcport=18332"
# - "-rest"
volumes:
postgres: null