diff --git a/portracker/SETUP.md b/portracker/SETUP.md index cc4a437..9a07012 100644 --- a/portracker/SETUP.md +++ b/portracker/SETUP.md @@ -9,7 +9,8 @@ Portracker is a real-time port monitoring and service discovery tool. ### Get User IDs - [ ] **Manual**: SSH into your NAS and run `sudo synouser --get svc-portracker`. -- [ ] **Action**: Record the `User ID` (PUID) and `Group ID` (PGID) for use in Portainer. +- [ ] **Confirmed IDs**: `User ID` (PUID) is `1043`, `Group ID` (PGID) is `65538`. +- [ ] **Action**: Use these values in your Portainer stack environment. ## 2. Infrastructure Setup ### Run Setup Script @@ -24,9 +25,9 @@ Portracker is a real-time port monitoring and service discovery tool. ## 3. Portainer Deployment ### Environment Variables - [ ] **Action**: In the Portainer Stack configuration, add the following environment variables: - - `PUID=[Your UID]` - - `PGID=[Your GID]` - - `TZ=[Your Timezone, e.g., America/Toronto]` + - `PUID=1043` + - `PGID=65538` + - `TZ=America/Toronto` (Replace with your actual timezone) ### Deploy Stack - [ ] **Action**: Create a new stack named `portracker`. diff --git a/portracker/create_portracker_folders.sh b/portracker/create_portracker_folders.sh index b869247..7ded59c 100644 --- a/portracker/create_portracker_folders.sh +++ b/portracker/create_portracker_folders.sh @@ -6,9 +6,8 @@ BASE="/volume1/docker/portracker" mkdir -p "${BASE}/data" # Set ownership and permissions -# IMPORTANT: Replace 1024:100 with your actual PUID:PGID if necessary -# By default, we initialize it and you can adjust via Synology File Station if needed. -chown -R 1024:100 "${BASE}" +# Set ownership and permissions for svc-portracker (1043:65538) +chown -R 1043:65538 "${BASE}" chmod -R 750 "${BASE}" echo "Folders created and permissions set for ${BASE}" diff --git a/portracker/docker-compose.portainer.yml b/portracker/docker-compose.portainer.yml index 0ba7aac..8f00af2 100644 --- a/portracker/docker-compose.portainer.yml +++ b/portracker/docker-compose.portainer.yml @@ -9,7 +9,7 @@ services: - SYS_PTRACE - SYS_ADMIN healthcheck: - test: ["CMD-SHELL", "nc -z 127.0.0.1 4999 || exit 1"] + test: [ "CMD-SHELL", "nc -z 127.0.0.1 4999 || exit 1" ] interval: 10s timeout: 5s retries: 3 @@ -20,7 +20,7 @@ services: - /volume1/docker/portracker/data:/data:rw - /var/run/docker.sock:/var/run/docker.sock:ro environment: - - PUID=${PUID:-1024} - - PGID=${PGID:-100} + - PUID=${PUID:-1043} + - PGID=${PGID:-65538} - TZ=${TZ:-America/Toronto} restart: on-failure:5