Dockerfile fix
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
|
||||
<img src="/private/apostol-dm/raw/branch/master/docker/screenshots/Authorization.png" width="23%"></img> <img src="/private/apostol-dm/raw/branch/master/docker/screenshots/Account_details.png" width="23%"></img> <img src="/private/apostol-dm/raw/branch/master/docker/screenshots/Deal_information.png" width="23%"></img> <img src="/private/apostol-dm/raw/branch/master/docker/screenshots/Create_deal.png" width="23%"></img>
|
||||
|
||||
# Intro
|
||||
|
||||
Deal Module (dm) - the Bitdeals daemon that provides a special interfaces for creating and modifying user accounts and deals.
|
||||
|
||||
# Running DM docker container
|
||||
|
||||
On first run the initialization script will create, if empty, a new bitcoin and PGP keys and start the daemon.
|
||||
|
||||
`docker run -i -t --rm --mount src=bitdeals-conf,dest=/etc/dm -p 127.0.0.1:4999:4999 -p 127.0.0.1:80:80 bitdeals/apostol-dm`
|
||||
On first run the initialization script will create (if it is empty), a new bitcoin and PGP keys and start the daemon.
|
||||
|
||||
Daemon settings which may specified by an environment variables are saved to the daemon config files on the Docker Volume.
|
||||
|
||||
To use the BitDeals API you should register an user account on a BitDeals site and get a "client_id", "client_secret" at the account dashboard.
|
||||
|
||||
# Usage
|
||||
|
||||
Here are some example snippets to help you get started creating a container.
|
||||
@@ -28,8 +27,8 @@ services:
|
||||
- DM_BITCOIN=<address>
|
||||
- DM_FEE=<0.1%>
|
||||
- DM_PGP_PASSWORD=<password>
|
||||
- DM_FORWEB=http://127.0.0.1:4999
|
||||
- DM_WEBAUTH=0
|
||||
- DM_LC_ALL=en_US.UTF-8
|
||||
- |
|
||||
DM_PGP_SEC=
|
||||
-----BEGIN PGP PRIVATE KEY BLOCK-----
|
||||
@@ -39,8 +38,10 @@ services:
|
||||
volumes:
|
||||
- dm:/etc/dm
|
||||
ports:
|
||||
- 4999:4999
|
||||
- 127.0.0.1:4999:4999
|
||||
- 80:80
|
||||
volumes:
|
||||
dm:
|
||||
```
|
||||
|
||||
## docker cli
|
||||
@@ -51,12 +52,11 @@ docker run -d \
|
||||
-e DM_BITCOIN=<address> \
|
||||
-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_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 ./dm/:/etc/dm \
|
||||
-v /home/dm/:/etc/dm/ \
|
||||
bitdeals/apostol-dm
|
||||
```
|
||||
|
||||
@@ -67,13 +67,14 @@ Container images are configured using parameters passed at runtime.
|
||||
|Parameter|Function|
|
||||
|:--------|:-------|
|
||||
|-p 80|WebUI port TCP|
|
||||
|-p 4999|Module API port TCP [(API documentation)](https://bitbucket.org/bitdeals/apostol-dm)|
|
||||
|-p 4999|dm API port [(API documentation)](/private/apostol-dm/src/branch/master/doc/REST-API-ru.md)|
|
||||
|-e DM_TESTNET=|Enable bitcoin testnet mode. Default: `0`|
|
||||
|-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_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. Will be created if empty (with Account_URL in the key details).|
|
||||
|-e DM_PGP_PASSWORD=|User PGP key password.|
|
||||
|-e DM_WEBAUTH=|Enable web user interface authentication.|
|
||||
|-e DM_LC_ALL=|Set Deal Module locale.|
|
||||
|-e DM_ACCOUNT_URL=|Set Account_URL for a new account non-interactive registration. Format: http[s]://<host>[:<port>]|
|
||||
|-e DM_FORWEB=|dm host for dm Web app (the host should be accessable from your browser). Default: `http://127.0.0.1:4999`|
|
||||
|-e DM_WEBAUTH=|Enable Web app user interface authentication. Default: `0`|
|
||||
|-e DM_LC_ALL=|Set locale for dm. Default: `en_US.UTF-8`|
|
||||
|-e DM_ACCOUNT_URL=|Set Account_URL for a new account registration. Format: `http[s]://<host>[:<port>]`|
|
||||
|
||||
|
||||
Reference in New Issue
Block a user