Skip to content

[Homepage] fix: Hardcode PUID and PGID values#24

Merged
finallyjay merged 2 commits intomainfrom
fix/homepage-hardcode-puid-pgid
Apr 8, 2026
Merged

[Homepage] fix: Hardcode PUID and PGID values#24
finallyjay merged 2 commits intomainfrom
fix/homepage-hardcode-puid-pgid

Conversation

@finallyjay
Copy link
Copy Markdown
Owner

Summary

  • Replaces $PUID and $PGID env var references with hardcoded 1000 values
  • These are standard defaults that rarely change and were undocumented in .env.example

Test plan

  • Verify Homepage starts correctly with hardcoded values

Replaces env var references with direct values (1000) since
these rarely change and were not documented in .env.example.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 8, 2026 17:09
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Homepage service’s Docker Compose configuration to stop referencing PUID/PGID variables and instead run with fixed UID/GID values.

Changes:

  • Replaced PUID/PGID environment variable references with hardcoded 1000.
  • Kept existing HOMEPAGE_ALLOWED_HOSTS environment interpolation unchanged.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 20 to +23
environment:
HOMEPAGE_ALLOWED_HOSTS: ${HOMEPAGE_ALLOWED_HOSTS}
PUID: $PUID
PGID: $PGID
PUID: 1000
PGID: 1000
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoding PUID/PGID to 1000 removes the ability to run Homepage under a different host UID/GID and also makes the service docs inaccurate (homepage/README.md still documents PUID/PGID as configurable env vars). Consider switching to Compose interpolation defaults (e.g., allow overriding while defaulting to 1000) and/or update the service README to reflect that these values are fixed.

Copilot uses AI. Check for mistakes.
Comment on lines +22 to +23
PUID: 1000
PGID: 1000
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Compose, environment values are strings; using unquoted YAML integers (1000) can cause schema validation issues or type surprises in tooling. Quote these values (or use string interpolation) so they remain explicit strings.

Copilot uses AI. Check for mistakes.
These are no longer environment variables after hardcoding
them in docker-compose.yml.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@finallyjay finallyjay merged commit 7227e90 into main Apr 8, 2026
1 check passed
@finallyjay finallyjay deleted the fix/homepage-hardcode-puid-pgid branch April 8, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants