Add example config files for docker.

2024-05-20_merge
tecnovert 6 years ago
parent a49be16f9c
commit 21b23fe865
No known key found for this signature in database
GPG Key ID: 13F13651C9CF0D6B
  1. 3
      Dockerfile
  2. 1
      docker/.env
  3. 4
      docker/coindata/.gitignore
  4. 38
      docker/coindata/basicswap/basicswap.json
  5. 3
      docker/coindata/litecoin/litecoin.conf
  6. 16
      docker/coindata/particl/particl.conf
  7. 2
      docker/docker-compose.yml
  8. 2
      docker/dockerbuild.bat
  9. 2
      docker/dockerup.bat

@ -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 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 # 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; \ RUN wget -O bs.zip https://github.com/tecnovert/basicswap/archive/master.zip; \
unzip bs.zip; \ unzip bs.zip; \
cd basicswap-master; \ cd basicswap-master; \

@ -0,0 +1 @@
HTML_PORT=127.0.0.1:12700:12700

@ -1,5 +1 @@
* *
!.gitignore
!basicswap/basicswap.json
!particl/particl.conf
!litecoin/litecoin.conf

@ -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
}

@ -0,0 +1,3 @@
prune=1000
rpcport=19795
printtoconsole=0

@ -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: volumes:
- ./coindata:/coindata - ./coindata:/coindata
ports: ports:
- "127.0.0.1:12700:12700" # Expose only to localhost - "${HTML_PORT}" # Expose only to localhost, see .env
volumes: volumes:
coindata: coindata:

@ -0,0 +1,2 @@
set HTML_PORT=12700:12700
docker-compose build

@ -0,0 +1,2 @@
set HTML_PORT=12700:12700
docker-compose up
Loading…
Cancel
Save