mirror of
https://github.com/basicswap/basicswap.git
synced 2025-01-03 09:19:26 +00:00
Add example config files for docker.
This commit is contained in:
parent
a49be16f9c
commit
21b23fe865
9 changed files with 63 additions and 8 deletions
|
@ -21,9 +21,6 @@ RUN PARTICL_VERSION=0.18.0.12 PARTICL_VERSION_TAG= PARTICL_ARCH=x86_64-linux-gnu
|
|||
tar -xvf litecoin-0.17.1-x86_64-linux-gnu.tar.gz -C ${LITECOIN_BINDIR} --strip-components 2 litecoin-0.17.1/bin/litecoind litecoin-0.17.1/bin/litecoin-cli
|
||||
|
||||
# TODO: move coindata dir out of src dir
|
||||
#COPY . /opt/basicswap
|
||||
#RUN ls /opt/basicswap; \
|
||||
# cd /opt/basicswap; \
|
||||
RUN wget -O bs.zip https://github.com/tecnovert/basicswap/archive/master.zip; \
|
||||
unzip bs.zip; \
|
||||
cd basicswap-master; \
|
||||
|
|
1
docker/.env
Normal file
1
docker/.env
Normal file
|
@ -0,0 +1 @@
|
|||
HTML_PORT=127.0.0.1:12700:12700
|
4
docker/coindata/.gitignore
vendored
4
docker/coindata/.gitignore
vendored
|
@ -1,5 +1 @@
|
|||
*
|
||||
!.gitignore
|
||||
!basicswap/basicswap.json
|
||||
!particl/particl.conf
|
||||
!litecoin/litecoin.conf
|
||||
|
|
38
docker/coindata/basicswap/basicswap.json
Normal file
38
docker/coindata/basicswap/basicswap.json
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"zmqhost": "tcp://127.0.0.1",
|
||||
"zmqport": 20792,
|
||||
"htmlhost": "localhost",
|
||||
"htmlport": 12700,
|
||||
"network_key": "7sW2UEcHXvuqEjkpE5mD584zRaQYs6WXYohue4jLFZPTvMSxwvgs",
|
||||
"network_pubkey": "035758c4a22d7dd59165db02a56156e790224361eb3191f02197addcb3bde903d2",
|
||||
"chainclients": {
|
||||
"particl": {
|
||||
"connection_type": "rpc",
|
||||
"manage_daemon": true,
|
||||
"rpcport": 19792,
|
||||
"datadir": "/coindata/particl",
|
||||
"bindir": "/opt/particl",
|
||||
"blocks_confirmed": 2
|
||||
},
|
||||
"litecoin": {
|
||||
"connection_type": "rpc",
|
||||
"manage_daemon": true,
|
||||
"rpcport": 19795,
|
||||
"datadir": "/coindata/litecoin",
|
||||
"bindir": "/opt/litecoin",
|
||||
"use_segwit": true,
|
||||
"blocks_confirmed": 2
|
||||
},
|
||||
"bitcoin": {
|
||||
"connection_type": "none",
|
||||
"manage_daemon": false,
|
||||
"rpcport": 19796,
|
||||
"datadir": "/coindata/bitcoin",
|
||||
"bindir": "/opt/bitcoin",
|
||||
"use_segwit": true
|
||||
}
|
||||
},
|
||||
"check_progress_seconds": 60,
|
||||
"check_watched_seconds": 60,
|
||||
"check_expired_seconds": 60
|
||||
}
|
3
docker/coindata/litecoin/litecoin.conf
Normal file
3
docker/coindata/litecoin/litecoin.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
prune=1000
|
||||
rpcport=19795
|
||||
printtoconsole=0
|
16
docker/coindata/particl/particl.conf
Normal file
16
docker/coindata/particl/particl.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
[main]
|
||||
port=14792
|
||||
rpcport=19792
|
||||
daemon=0
|
||||
printtoconsole=0
|
||||
server=1
|
||||
#debug=1
|
||||
debugexclude=libevent
|
||||
zmqpubsmsg=tcp://127.0.0.1:20792
|
||||
acceptnonstdtxn=0
|
||||
spentindex=1
|
||||
txindex=1
|
||||
|
||||
# Load a random initial wallet master key
|
||||
createdefaultmasterkey=1
|
|
@ -7,7 +7,7 @@ services:
|
|||
volumes:
|
||||
- ./coindata:/coindata
|
||||
ports:
|
||||
- "127.0.0.1:12700:12700" # Expose only to localhost
|
||||
- "${HTML_PORT}" # Expose only to localhost, see .env
|
||||
|
||||
volumes:
|
||||
coindata:
|
||||
|
|
2
docker/dockerbuild.bat
Executable file
2
docker/dockerbuild.bat
Executable file
|
@ -0,0 +1,2 @@
|
|||
set HTML_PORT=12700:12700
|
||||
docker-compose build
|
2
docker/dockerup.bat
Executable file
2
docker/dockerup.bat
Executable file
|
@ -0,0 +1,2 @@
|
|||
set HTML_PORT=12700:12700
|
||||
docker-compose up
|
Loading…
Reference in a new issue