-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathswarm-compose.yaml
118 lines (113 loc) · 2.98 KB
/
swarm-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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
version: "3.7"
networks:
chainpoint-gateway:
secrets:
HOT_WALLET_PASS:
external: true
HOT_WALLET_ADDRESS:
external: true
services:
chainpoint-gateway:
restart: on-failure
entrypoint: /home/node/app/scripts/run_prod.sh
volumes:
- ./ip-blacklist.txt:/home/node/app/ip-blacklist.txt:ro
- ~/.chainpoint/gateway/data/rocksdb:/root/.chainpoint/gateway/data/rocksdb
- ./.env:/home/node/app/.env
- ~/.chainpoint/gateway/.lnd:/root/.lnd:ro
image: gcr.io/chainpoint-registry/github_chainpoint_chainpoint-gateway:${DOCKER_TAG:-latest}
user: ${USERID}:${GROUPID}
build: .
deploy:
mode: global
placement:
constraints: [node.role==manager]
restart_policy:
condition: any
delay: 5s
max_attempts: 15
window: 90s
depends_on:
- lnd
ports:
- target: 8080
published: 80
protocol: tcp
mode: host
networks:
- chainpoint-gateway
secrets:
- HOT_WALLET_PASS
- HOT_WALLET_ADDRESS
environment:
HOME: /root
HOT_WALLET_PASS: DOCKER-SECRET->HOT_WALLET_PASS
HOT_WALLET_ADDRESS: DOCKER-SECRET->HOT_WALLET_ADDRESS
LND_SOCKET: ${LND_SOCKET}
CHAINPOINT_CORE_CONNECT_IP_LIST: "${CHAINPOINT_CORE_CONNECT_IP_LIST}"
AGGREGATION_INTERVAL_SECONDS: "${AGGREGATION_INTERVAL_SECONDS}"
PROOF_EXPIRE_MINUTES: "${PROOF_EXPIRE_MINUTES}"
POST_HASHES_MAX: "${POST_HASHES_MAX}"
POST_VERIFY_PROOFS_MAX: "${POST_VERIFY_PROOFS_MAX}"
GET_PROOFS_MAX: "${GET_PROOFS_MAX}"
MAX_SATOSHI_PER_HASH: "${MAX_SATOSHI_PER_HASH}"
NETWORK: ${NETWORK}
NODE_ENV: ${NODE_ENV}
CHANNEL_AMOUNT: ${CHANNEL_AMOUNT}
FUND_AMOUNT: ${FUND_AMOUNT}
NO_LSAT_CORE_WHITELIST: ${NO_LSAT_CORE_WHITELIST}
GOOGLE_UA_ID: ${GOOGLE_UA_ID}
PUBLIC_IP: ${LND_PUBLIC_IP}
tty: true
logging:
driver: 'json-file'
options:
max-size: '1g'
max-file: '5'
# Lightning node
lnd:
image: tierion/lnd:${NETWORK:-testnet}-v0.14.1
user: ${USERID}:${GROUPID}
entrypoint: "./start-lnd.sh"
ports:
- target: 8080
published: 8080
protocol: tcp
mode: host
- target: 9735
published: 9735
protocol: tcp
mode: host
- target: 10009
published: 10009
protocol: tcp
mode: host
deploy:
restart_policy:
condition: any
delay: 5s
max_attempts: 15
window: 90s
endpoint_mode: dnsrr
environment:
- PUBLICIP=${LND_PUBLIC_IP}
- RPCUSER
- RPCPASS
- NETWORK=${NETWORK:-testnet}
- CHAIN
- DEBUG=info
- BACKEND=neutrino
- NEUTRINO=faucet.lightning.community:18333
- LND_REST_PORT
- LND_RPC_PORT
- TLSPATH
- TLSEXTRADOMAIN=lnd
volumes:
- ~/.chainpoint/gateway/.lnd:/root/.lnd:z
networks:
- chainpoint-gateway
logging:
driver: 'json-file'
options:
max-size: '1g'
max-file: '5'