feat: Add stack.env and use env_file in Portracker configuration

This commit is contained in:
2026-02-22 14:41:55 -05:00
parent db67301d8d
commit a2d7fa1de6
2 changed files with 7 additions and 4 deletions

View File

@@ -19,8 +19,5 @@ services:
volumes:
- /volume1/docker/portracker/data:/data:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- PUID=${PUID:-1043}
- PGID=${PGID:-65538}
- TZ=${TZ:-America/Toronto}
env_file: stack.env
restart: on-failure:5

6
portracker/stack.env Normal file
View File

@@ -0,0 +1,6 @@
PUID=1043
PGID=65538
TZ=America/Toronto
# Add optional authentication if needed
# AUTH_USER=admin
# AUTH_PASS=password