add volume

This commit is contained in:
cloudwithax 2026-02-13 21:44:29 -05:00
parent 675aaedf9a
commit db66dc2bed
1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,12 @@ WORKDIR /data
# expose the default relay port # expose the default relay port
EXPOSE 4001 EXPOSE 4001
# persist keypair and data to the volume-mounted /data directory
# XDG_DATA_HOME tells the directories crate to resolve paths under /data
# so the keypair ends up at /data/dusk-relay/keypair instead of ~/.local/share
ENV XDG_DATA_HOME=/data
VOLUME /data
# set environment variables # set environment variables
ENV RUST_LOG=info ENV RUST_LOG=info
ENV DUSK_RELAY_PORT=4001 ENV DUSK_RELAY_PORT=4001