Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

fix: adding volume /appdata removes created directories (#1445)

Meier Lukasfe4dfc484bcc
diff --git a/Dockerfile b/Dockerfile
index 468e189e1..5e682f89b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -59,8 +59,6 @@ WORKDIR /app
# gettext is required for envsubst
RUN apk add --no-cache redis nginx bash gettext
RUN mkdir /appdata
-RUN mkdir /appdata/db
-RUN mkdir /appdata/redis
VOLUME /appdata
RUN mkdir /secrets
VOLUME /secrets
diff --git a/scripts/run.sh b/scripts/run.sh
index f53752502..bc4d9c9b1 100644
--- a/scripts/run.sh
+++ b/scripts/run.sh
@@ -1,3 +1,7 @@
+# Creating folders in volume
+mkdir -p /appdata/db
+mkdir -p /appdata/redis
+
# Run migrations
if [ $DB_MIGRATIONS_DISABLED = "true" ]; then
echo "DB migrations are disabled, skipping"