-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathdocker-compose.yml
154 lines (146 loc) · 4.8 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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: '3.8'
volumes:
watch-db: {}
keygen-db: {}
sign-db: {}
services:
#########################################################################
# Bitcoin core
#------------------------------------------------------------------------
# Preparation
# - bitcoin.conf need to be copied
# from ./data/config/bitcoind/bitcoin.signet.conf to ./docker/nodes/btc/data1, data2, data3
#
# Example of commands to container
# - enter in container
# - $ docker-compose exec btc-watch bash
# - run bitcoin-cli
# - $ docker-compose exec btc-watch bitcoin-cli getnetworkinfo
# - wallet location
# - /data/.bitcoin/signet/wallets # using signet
# or
# - /data/.bitcoin/testnet3/wallets # using testnet
#########################################################################
btc-watch:
image: lncm/bitcoind:v22.0
container_name: btc-watch
volumes:
#- ./docker/nodes/btc/data/bitcoin.conf:/data/.bitcoin/bitcoin.conf
- ./docker/nodes/btc/data1:/data/.bitcoin
ports:
- "${BTC_WATCH_RPC_PORT:-18332}:18332"
stdin_open: true
tty: true
# logging:
# driver: fluentd
# options:
# fluentd-address: "localhost:24224"
# tag: "docker.{{.ID}}"
command: --printtoconsole #--conf=/data/.bitcoin/bitcoind.conf
btc-keygen:
image: lncm/bitcoind:v22.0
container_name: btc-keygen
volumes:
- ./docker/nodes/btc/data2:/data/.bitcoin
ports:
- "${BTC_KEYGEN_RPC_PORT:-19332}:18332"
stdin_open: true
tty: true
# logging:
# driver: fluentd
# options:
# fluentd-address: "localhost:24224"
# tag: "docker.{{.ID}}"
command: -maxconnections=0 --printtoconsole #--conf=/data/.bitcoin/bitcoind.conf
btc-sign:
image: lncm/bitcoind:v22.0
container_name: btc-sign
volumes:
- ./docker/nodes/btc/data3:/data/.bitcoin
ports:
- "${BTC_SIGN_RPC_PORT:-20332}:18332"
stdin_open: true
tty: true
# logging:
# driver: fluentd
# options:
# fluentd-address: "localhost:24224"
# tag: "docker.{{.ID}}"
command: -maxconnections=0 --printtoconsole #--conf=/data/.bitcoin/bitcoind.conf
#########################################################################
# Database
#########################################################################
# watch only wallet
watch-db:
image: mysql:5.7
platform: linux/x86_64
container_name: watch-db
volumes:
- watch-db:/var/lib/mysql #this volume should be outside to keep on a permanent basis
- "./docker/mysql/sqls:/sqls"
- "./docker/mysql/watch/conf.d:/etc/mysql/conf.d"
- "./docker/mysql/watch/init.d:/docker-entrypoint-initdb.d"
#- "./docker/mysql/scripts:/docker-entrypoint-initdb.d"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: watch
MYSQL_USER: hiromaily
MYSQL_PASSWORD: hiromaily
ENV: watch
ports:
- "${WATCH_MYSQL_PORT:-3307}:3306"
# keygen wallet
keygen-db:
image: mysql:5.7
platform: linux/x86_64
container_name: keygen-db
volumes:
- keygen-db:/var/lib/mysql #this volume should be outside to keep on a permanent basis
- "./docker/mysql/sqls:/sqls"
- "./docker/mysql/keygen/conf.d:/etc/mysql/conf.d"
- "./docker/mysql/keygen/init.d:/docker-entrypoint-initdb.d"
#- "./docker/mysql/scripts:/docker-entrypoint-initdb.d"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: keygen
MYSQL_USER: hiromaily
MYSQL_PASSWORD: hiromaily
ENV: keygen
ports:
- "${KEYGEN_MYSQL_PORT:-3308}:3306"
# sign wallet
sign-db:
image: mysql:5.7
platform: linux/x86_64
container_name: sign-db
volumes:
- sign-db:/var/lib/mysql #this volume should be outside to keep on a permanent basis
- "./docker/mysql/sqls:/sqls"
- "./docker/mysql/sign/conf.d:/etc/mysql/conf.d"
- "./docker/mysql/sign/init.d:/docker-entrypoint-initdb.d"
#- "./docker/mysql/scripts:/docker-entrypoint-initdb.d"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: sign
MYSQL_USER: hiromaily
MYSQL_PASSWORD: hiromaily
ENV: sign
ports:
- "${SIGN_MYSQL_PORT:-3309}:3306"
#########################################################################
# Open Tracing
#------------------------------------------------------------------------
# https://hub.docker.com/r/jaegertracing/all-in-one/tags
#########################################################################
# jaeger:
# image: jaegertracing/all-in-one:1.31
# ports:
# - 5775:5775/udp
# - 6831:6831/udp
# - 6832:6832/udp
# - 5778:5778
# - 16686:16686
# - 14268:14268
# - 9411:9411
# environment:
# COLLECTOR_ZIPKIN_HTTP_PORT: 9411