Default bot container to UID 1001

This commit is contained in:
MiTHRAL 2026-05-13 22:16:56 -04:00
parent 3b2e7cdd12
commit 4008d9550e
4 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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: