Docker: keep data in ~/.plm-electrumx (bind mount) instead of named volumes
db/ is the database, ssl/ the certificate; ELECTRUMX_DATADIR, PLM_UID and PLM_GID configure it like the node's ~/.palladium. The entrypoint fails with a clear message if a data directory is not writable. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c2dcff5cc8
commit
419ff90859
6 files changed
+52
-24
No files matched your search
@@ -16,6 +16,13 @@ SSL_HOSTNAME="${SSL_HOSTNAME:-electrumx}"
|
||||
|
||||
log() { echo "entrypoint: $*"; }
|
||||
|
||||
for dir in "$DB_DIRECTORY" "$SSL_DIR"; do
|
||||
if [ ! -w "$dir" ]; then
|
||||
log "ERROR: $dir is not writable by uid $(id -u). Create the data directory on the host as that user, or set PLM_UID/PLM_GID (see README.md)." >&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
case "$SSL_ENABLED" in
|
||||
true|TRUE|True|1|yes|on)
|
||||
if [ -n "${SSL_CERTFILE:-}" ] || [ -n "${SSL_KEYFILE:-}" ]; then
|
||||
|
||||
Reference in new issue
Block a user