Skip to content

Commit

Permalink
fix: dev docker issues (#2118)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meierschlumpf authored Aug 30, 2024
1 parent 5b5121a commit 995c8a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ENV NODE_ENV production
ENV NODE_OPTIONS '--no-experimental-fetch'

# App environment variables
ENV DATABASE_URL "file:/app/data/db.sqlite"
ENV DATABASE_URL "file:/data/db.sqlite"
ENV NEXTAUTH_URL "http://localhost:7575"
ENV NEXTAUTH_SECRET NOT_IN_USE_BECAUSE_JWTS_ARE_UNUSED

Expand Down
8 changes: 5 additions & 3 deletions docker/entrypoint/docker-entrypoint.d/00-user-setup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

HOMARR_USER_PATHS="/app/data /app/public/icons"
HOMARR_USER_PATHS="/app/data /app/public/icons /data"

for path in $HOMARR_USER_PATHS
do
Expand All @@ -21,6 +21,8 @@ groupmod -g $PGID homarr

DOCKER_GID=$(stat -c %g /var/run/docker.sock 2>/dev/null)
if [[ $? -eq 0 ]]; then
echo "SETTING DOCKER GID TO ${DOCKER_GID}"
groupmod -g $DOCKER_GID docker
if [[ $DOCKER_GID -ne 0 ]]; then
echo "SETTING DOCKER GID TO ${DOCKER_GID}"
groupmod -g $DOCKER_GID docker
fi
fi

0 comments on commit 995c8a4

Please sign in to comment.