Default bot container to UID 1001
This commit is contained in:
parent
3b2e7cdd12
commit
4008d9550e
4 changed files with 5 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
DISCORD_BOT_TOKEN=replace-with-your-discord-bot-token
|
DISCORD_BOT_TOKEN=replace-with-your-discord-bot-token
|
||||||
DISCORD_CHANNEL_ID=1504278732070981683
|
DISCORD_CHANNEL_ID=1504278732070981683
|
||||||
PUID=1000
|
PUID=1001
|
||||||
PGID=1000
|
PGID=1000
|
||||||
ARCHIVE_STATUS_CONFIG=services.json
|
ARCHIVE_STATUS_CONFIG=services.json
|
||||||
ARCHIVE_STATUS_STATE=state/status-message.json
|
ARCHIVE_STATUS_STATE=state/status-message.json
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
DISCORD_BOT_TOKEN=replace-with-your-discord-bot-token
|
DISCORD_BOT_TOKEN=replace-with-your-discord-bot-token
|
||||||
DISCORD_CHANNEL_ID=1504278732070981683
|
DISCORD_CHANNEL_ID=1504278732070981683
|
||||||
PUID=1000
|
PUID=1001
|
||||||
PGID=1000
|
PGID=1000
|
||||||
ARCHIVE_STATUS_CONFIG=services.json
|
ARCHIVE_STATUS_CONFIG=services.json
|
||||||
ARCHIVE_STATUS_STATE=state/status-message.json
|
ARCHIVE_STATUS_STATE=state/status-message.json
|
||||||
|
|
|
||||||
|
|
@ -113,6 +113,8 @@ mkdir -p state
|
||||||
chmod 755 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:
|
If `state/` or `services.json` were created by a previous container as another user, fix ownership once:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: archive-status-bot
|
container_name: archive-status-bot
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
user: "${PUID:-1000}:${PGID:-1000}"
|
user: "${PUID:-1001}:${PGID:-1000}"
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
expose:
|
expose:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue