From 3d99879a1b74cfd2e37f7c3c2bd59e4d016716b2 Mon Sep 17 00:00:00 2001 From: b1ek Date: Sat, 5 Aug 2023 03:59:10 +1000 Subject: [PATCH] mount data volume --- Dockerfile | 1 + docker-compose.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 6f949c9..75797b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ RUN cargo install --path . FROM alpine +WORKDIR /opt/data COPY --from=builder /usr/local/cargo/bin/gitea-bot /bin/gitea-bot RUN [ "gitea-bot" ] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index c8544b3..9bb61cf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,3 +5,5 @@ services: context: . dockerfile: Dockerfile restart: always + volumes: + - './:/opt/data' \ No newline at end of file