From 09a95ca28ecc7a3876b67380b5179155bcd25271 Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Tue, 8 Aug 2023 22:37:23 +0300 Subject: [PATCH] ???? --- Dockerfile | 1 + docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 67bc252..c44fda7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,5 +27,6 @@ RUN echo "JWT_SECRET=$(openssl rand -base64 256 | tr -d '\n')" > .env USER node USER root RUN mkdir -p /var/lib/waffle/uploads && chown -R node /var/lib/waffle/uploads +VOLUME /var/lib/waffle USER node CMD [ "/bin/sh", "-c", "node index.js" ] diff --git a/docker-compose.yml b/docker-compose.yml index 77ab3fd..4574eda 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,7 +11,7 @@ services: waffle: build: . volumes: - - ./tmp/uploads:/var/lib/waffle + - ./tmp/waffle:/var/lib/waffle ports: - "5002:3000" environment: