-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
179 lines (166 loc) · 4.31 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
########### payment/wallet container configuration ############
version: "3.3"
services:
###############################################################
# traefik:
# image: traefik:v2.2
# ports:
# - "80:80"
# - "8080:8080"
# command:
# volumes:
# - "/var/run/docker.sock:/var/run/docker.sock:ro"
# - "$PWD/traefik.yml:/etc/traefik/traefik.yml"
# networks:
# - frontend
# - backend
###############################################################
monerod:
image: xmrto/monero
command:
# remove for production use
--testnet
--data-dir /monero
--non-interactive
volumes:
# the monerod config file
- ./monerod/config.conf:/monero
ports:
# testnet p2p
- "28080"
# testnet rpc
- "28081"
environment:
- USER_ID=1000
- P2P_BIND_IP=0.0.0.0
# mainnet = 18080/18081
# testnet = 28080/28081
- P2P_BIND_PORT=28080
- LOG_LEVEL=0
- RPC_USER="plutus"
- RPC_PASSWD="add8ncHdof90"
- RPC_BIND_IP=0.0.0.0
- RPC_BIND_PORT=28081
# enable tor use for rpc
- USE_TORSOCKS=NO
# enable tor use for the monero daemon
- USE_TOR=YES
restart: unless-stopped
networks:
- backend
logging:
driver: "json-file"
options:
max-size: 10m
max-file: "3"
###############################################################
monero-wallet-rpc:
image: xmrto/monero
command: monero-wallet-rpc
--testnet
--wallet-file wallet
--password-file wallet.passwd
volumes:
# the monerod config file
- ./monerod/config.conf:/monero
ports:
# testnet p2p
- "28080"
# testnet rpc
- "28081"
environment:
- USER_ID=1000
- P2P_BIND_IP=0.0.0.0
# mainnet = 18080/18081
# testnet = 28080/28081
- P2P_BIND_PORT=28080
- LOG_LEVEL=0
- RPC_USER="plutus"
- RPC_PASSWD="add8ncHdof90"
- RPC_BIND_IP=0.0.0.0
- RPC_BIND_PORT=28081
# enable tor use for rpc
- USE_TORSOCKS=NO
# enable tor use for the monero daemon
- USE_TOR=YES
restart: unless-stopped
networks:
- backend
logging:
driver: "json-file"
options:
max-size: 10m
max-file: "3"
###############################################################
bitcoind:
image: ruimarinho/bitcoin-core
command: -printtoconsole=1
-testnet=1
-rpcallowip=172.17.0.0/16
-rpcbind=0.0.0.0
-rpcauth=plu:7dbe632d2314af66428d4808844e6b63$a0a8f3759d50bb4de4a3d5b32392a0c86776bc5eb0c8cc12be016c1673d3cedd
ports:
- "18332"
- "18333"
volumes:
- bitcoind-data:/home/bitcoin/.bitcoin/
restart: unless-stopped
networks:
- backend
logging:
driver: "json-file"
options:
max-size: 10m
max-file: "3"
###############################################################
plutus:
image: plutus
volumes:
- plutus-data:/plutus
ports:
- "127.0.0.1:443:8443"
environment:
- PG_URL:host=localhost port=5432 user=postgres dbname=plutus password=LtZVNKX51fv2jYTKI6YVfRl28qjiicvu sslmode=disable
- DEBUG:true
- BIND_PORT::8443
- BITCOIND_RPC_URL:http://plu:mjgZWmC-Cw_ESUnZn4L5Quik2kHW8dRUGkX90SQB9jw=@bitcoind:18332/
- BITCOIND_SERVICE_ADDR:bitcoind
- MONERO_WALLET_RPC_URL:http://monero_wallet_rpc:28083/json_rpc
- MONEROD_SERVICE_ADDR:monero_wallet_rpc
networks:
- backend
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: 10m
max-file: "3"
###############################################################
postgres:
image: postgres
volumes:
- database-data:/var/lib/postgresql/data
ports:
- "127.0.0.1:5432:5432"
environment:
- POSTGRES_PASSWORD=add8ncHdof90
- POSTGRES_USER=plutus
- POSTGRES_DB=plutus
restart: always
networks:
- backend
logging:
driver: "json-file"
options:
max-size: 10m
max-file: "3"
###############################################################
volumes:
bitcoind-data:
monerod-data:
plutus-data:
database-data:
###############################################################
networks:
# frontend:
backend: