- [ ]**Action**: Run the setup script to initialize the data directory:
```bash
sudo bash create_portracker_folders.sh
```
- **What it does**:
- Creates `/volume1/docker/portracker/data`.
- Sets ownership to the `svc-portracker` user (Note: You may need to edit the script with your specific PUID/PGID before running).
## 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]`
### Deploy Stack
- [ ]**Action**: Create a new stack named `portracker`.
- [ ]**Action**: Paste the content of `docker-compose.portainer.yml` and deploy.
- [ ]**Verification**: Access the dashboard at `http://[NAS_IP]:4999`.
> [!NOTE]
> This service requires access to the Docker socket and host PID to monitor network services. It runs with elevated capabilities (`SYS_PTRACE`, `SYS_ADMIN`).