mirror of
https://github.com/Xahau/Validation-Ledger-Tx-Store-to-xPOP.git
synced 2025-11-04 12:25:48 +00:00
Add volume & self script, add example env vars
This commit is contained in:
@@ -17,6 +17,7 @@ docker rmi wietsewind/xpop:latest # Clean existing image, or build locally
|
||||
docker run \
|
||||
--name xpop \
|
||||
--rm -i \
|
||||
-v $(pwd)/store:/usr/src/app/store
|
||||
-p 3000:3000 \
|
||||
-e EVENT_SOCKET_PORT=3000 \
|
||||
-e URL_PREFIX=http://localhost:3000 \
|
||||
|
||||
@@ -1,3 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
source .env && docker run -i --name xpop --rm -p 3000:3000 xpop
|
||||
self(){
|
||||
DIR=$( cd "$( dirname "$0" )/" && pwd)
|
||||
echo $DIR
|
||||
}
|
||||
|
||||
docker run -i --env-file $(self)/../.env -v $(self)/../store/:/usr/src/app/store --name xpop --rm -p 3000:3000 \
|
||||
-e EVENT_SOCKET_PORT=3000 \
|
||||
-e URL_PREFIX=http://localhost:3000 \
|
||||
-e NETWORKID=1 \
|
||||
-e UNLURL=https://vl.altnet.rippletest.net \
|
||||
-e UNLKEY=ED264807102805220DA0F312E71FC2C69E1552C9C5790F6C25E3729DEB573D5860 \
|
||||
-e NODES=wss://testnet.xrpl-labs.com,wss://s.altnet.rippletest.net:51233 \
|
||||
-e FIELDSREQUIRED=Fee,Account,OperationLimit \
|
||||
-e NOVALIDATIONLOG=true \
|
||||
-e NOELIGIBLEFULLTXLOG=true \
|
||||
xpop
|
||||
|
||||
Reference in New Issue
Block a user