Random RPC passwords on startup

Pulling example from https://github.com/lbryio/chainquery#lbrycrd
This should establish a random RPC pass every time the containers start
This commit is contained in:
Leopere 2018-10-02 16:16:38 -04:00
parent 99ac0f950c
commit 803dec45cb

2
chainquery/.env Normal file
View file

@ -0,0 +1,2 @@
COMPOSE_PROJECT_NAME=chainquery
RPC_PASSWORD=${RPC_PASSWORD:-$(env LC_CTYPE=C LC_ALL=C tr -dc A-Za-z0-9 < /dev/urandom | head -c 16 | xargs)}