Add configuration directories

This commit is contained in:
Foster Hangdaan 2023-10-23 15:35:43 -04:00
parent 9479405aab
commit edba14e5ba
Signed by: foster
GPG key ID: E48D7F49A852F112

View file

@ -51,9 +51,11 @@ COPY --from=builder /build/target/release/electrs /usr/bin/electrs
RUN adduser --system --group --disabled-password --home /electrs electrs RUN adduser --system --group --disabled-password --home /electrs electrs
RUN mkdir -p /etc/electrs
USER electrs USER electrs
RUN mkdir -p /electrs/db /electrs/.bitcoin RUN mkdir -p /electrs/db /electrs/.bitcoin /electrs/.electrs
# Data directory # Data directory
VOLUME /electrs/db VOLUME /electrs/db
@ -61,6 +63,9 @@ VOLUME /electrs/db
# Bitcoin daemon data # Bitcoin daemon data
VOLUME /electrs/.bitcoin VOLUME /electrs/.bitcoin
# Config directories
VOLUME /etc/electrs /electrs/.electrs
# Electrum RPC - Mainnet # Electrum RPC - Mainnet
EXPOSE 50001 EXPOSE 50001