Add volume & self script, add example env vars

This commit is contained in:
Wietse Wind
2023-10-07 02:16:04 +02:00
parent 60b285b7b6
commit 30302a004e
2 changed files with 17 additions and 1 deletions

View File

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

View File

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