From 4008d9550e0ec8ac17ce83b579a38e19b3fa46b2 Mon Sep 17 00:00:00 2001 From: MiTHRAL Date: Wed, 13 May 2026 22:16:56 -0400 Subject: [PATCH] Default bot container to UID 1001 --- .env.deploy.example | 2 +- .env.example | 2 +- README.md | 2 ++ compose.yaml | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.env.deploy.example b/.env.deploy.example index a0dc0d8..ae2b259 100644 --- a/.env.deploy.example +++ b/.env.deploy.example @@ -1,6 +1,6 @@ DISCORD_BOT_TOKEN=replace-with-your-discord-bot-token DISCORD_CHANNEL_ID=1504278732070981683 -PUID=1000 +PUID=1001 PGID=1000 ARCHIVE_STATUS_CONFIG=services.json ARCHIVE_STATUS_STATE=state/status-message.json diff --git a/.env.example b/.env.example index e81cd8b..1b7111d 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,6 @@ DISCORD_BOT_TOKEN=replace-with-your-discord-bot-token DISCORD_CHANNEL_ID=1504278732070981683 -PUID=1000 +PUID=1001 PGID=1000 ARCHIVE_STATUS_CONFIG=services.json ARCHIVE_STATUS_STATE=state/status-message.json diff --git a/README.md b/README.md index ba1a4a1..b37c1a8 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,8 @@ mkdir -p state chmod 755 state ``` +If your host user is `1001`, that is the UID the container should run as. `1000` is only the default fallback here. + If `state/` or `services.json` were created by a previous container as another user, fix ownership once: ```sh diff --git a/compose.yaml b/compose.yaml index 6195f4d..f800a4c 100644 --- a/compose.yaml +++ b/compose.yaml @@ -3,7 +3,7 @@ services: build: . container_name: archive-status-bot restart: unless-stopped - user: "${PUID:-1000}:${PGID:-1000}" + user: "${PUID:-1001}:${PGID:-1000}" env_file: - .env expose: