Adding volume
Some checks are pending
Rust Checks / checks (push) Waiting to run
Rust Checks / checks (pull_request) Successful in 1m20s

This commit is contained in:
Tipragot 2024-02-12 15:39:07 +01:00
parent c48f71f7b5
commit 03d2b4385a
2 changed files with 2 additions and 1 deletions

View file

@ -8,4 +8,5 @@ FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/target/release/relay-server .
EXPOSE 80/tcp
VOLUME [ "/data" ]
CMD ["./relay-server"]

View file

@ -17,7 +17,7 @@ use uuid::Uuid;
lazy_static! {
static ref CLIENTS: DashMap<Uuid, Sender<Vec<u8>>> = DashMap::new();
static ref DB: Db = sled::open("data.db").expect("unable to open the database");
static ref DB: Db = sled::open("/data/secrets.db").expect("unable to open the database");
}
#[tokio::main]