add WebUI in Dockerfile

This commit is contained in:
2023-01-07 14:43:43 +03:00
parent f60a37cd85
commit 108a6e67c2
4 changed files with 141 additions and 98 deletions

View File

@@ -27,9 +27,9 @@ services:
- DM_TESTNET=0
- DM_BITCOIN=<address>
- DM_FEE=<0.1%>
- DM_CLIENT_ID=<id>
- DM_CLIENT_SECRET=<id>
- DM_PGP_PASSWORD=<password>
- DM_WEBAUTH=0
- DM_LC_ALL=en_US.UTF-8
- |
DM_PGP_SEC=
-----BEGIN PGP PRIVATE KEY BLOCK-----
@@ -52,8 +52,8 @@ docker run -d \
-e DM_FEE=0.1% \
-e DM_PGP_SEC="$(gpg2 --armor --export-secret-key Account_URL)" \
-e DM_PGP_PASSWORD=<pgp key password> \
-e DM_CLIENT_ID=<user-id> \
-e DM_CLIENT_SECRET=<secret> \
-e DM_WEBAUTH=0 \
-e DM_LC_ALL=en_US.UTF-8 \
-p 127.0.0.1:4999:4999 \
-p 127.0.0.1:80:80 \
-v ./bitdeals-conf/:/etc/dm \
@@ -69,10 +69,10 @@ Container images are configured using parameters passed at runtime.
|-p 80|WebUI port TCP|
|-p 4999|Module API port TCP [(API documentation)](https://bitbucket.org/bitdeals/apostol-dm)|
|-e DM_TESTNET=|Enable bitcoin testnet mode. Default: `0`|
|-e DM_BITCOIN=|User account bitcoin address. If empty, the initialization script will create and save a new bitcoin key.|
|-e DM_BITCOIN=|User account bitcoin address. Will be created if empty.|
|-e DM_FEE=|User fee for created deals. You MUST indicate the sign “%” for a percentage of the deal amount or FIXED value in satoshi. Default: `0.1%`|
|-e DM_PGP_SEC=|Variable with ASCII armored PGP user secret key. If empty, the initialization script will create and save a new PGP key with Account_URL in the key details.|
|-e DM_PGP_SEC=|Variable with ASCII armored PGP user secret key. Will be created if empty (with Account_URL in the key details).|
|-e DM_PGP_PASSWORD=|User PGP key password.|
|-e DM_CLIENT_ID=|BitDeals API access credentials (get it on a BitDeals site at User dashboard).|
|-e DM_CLIENT_SECRET=|BitDeals API access credentials (get it on a BitDeals site at User dashboard).|
|-e DM_WEBAUTH=|Enable web user interface authentication.|
|-e DM_LC_ALL=|Set Deal Module locale.|