feat: allow database directory configuration

Adds configuration options for database directory, either on command
line through (--db dir-name) or the config.toml file.

Fixes: https://todo.sr.ht/~gheartsfield/nostr-rs-relay/13
This commit is contained in:
Greg Heartsfield
2021-12-31 11:51:57 -06:00
parent f7f12a7984
commit 5a19a8876f
6 changed files with 59 additions and 14 deletions
+2 -4
View File
@@ -35,9 +35,7 @@ COPY --from=builder /nostr-rs-relay/target/release/nostr-rs-relay ${APP}/nostr-r
RUN chown -R $APP_USER:$APP_USER ${APP}
USER $APP_USER
WORKDIR ${APP_DATA}
WORKDIR ${APP}
ENV RUST_LOG=info
CMD ["../nostr-rs-relay"]
CMD ["./nostr-rs-relay --db $APP_DATA"]