feat: add environment variable puid and pgid #2011

This commit is contained in:
Fernando OK
2024-05-23 18:17:02 +02:00
committed by GitHub
parent b7fb086476
commit cb2b28ca4b
7 changed files with 413 additions and 31 deletions

23
docker-compose.yaml Normal file
View File

@@ -0,0 +1,23 @@
version: "2.1"
services:
#---------------------------------------------------------------------#
# Homarr - A simple, yet powerful dashboard for your server. #
#---------------------------------------------------------------------#
homarr:
container_name: homarr
#image: ghcr.io/ajnart/homarr:latest
build: # only for dev branch...
context: .
dockerfile: Dockerfile
restart: unless-stopped
environment:
- PUID=1000
- PGID=1000
- DOCKER_GID=999 # Must be same as host docker group id
- DATABASE_URL=file:/app/data/configs/db.sqlite
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- ./homarr_persistence/configs:/app/data/configs
- ./homarr_persistence/icons:/app/public/icons
ports:
- '7575:7575'