mirror of
https://github.com/FuzzyGrim/Yamtrack.git
synced 2026-03-03 02:37:02 +00:00
change default puid and guid to 1000
This commit is contained in:
@@ -19,11 +19,9 @@ WORKDIR /yamtrack
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
|
||||
# create user abc for later PUID/PGID mapping https://github.com/linuxserver/docker-baseimage-alpine/blob/master/Dockerfile
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
groupmod -g 1000 users && \
|
||||
useradd -u 911 -U -M -s /bin/bash abc && \
|
||||
usermod -G users abc
|
||||
# create user abc for later PUID/PGID mapping
|
||||
useradd -U -M -s /bin/bash abc
|
||||
|
||||
# Django app
|
||||
COPY src ./
|
||||
|
||||
@@ -58,8 +58,8 @@ volumes:
|
||||
| MAL_API | String | MyAnimeList API key | Yes | None | Required for anime and manga |
|
||||
| SECRET | String | Django secret key | Recommended | "secret" | [SECRET_KEY](https://docs.djangoproject.com/en/4.2/ref/settings/#secret-key) |
|
||||
| ALLOWED_HOSTS | List | Base IP / Domain | No | "*" | [ALLOWED_HOSTS](https://docs.djangoproject.com/en/4.1/ref/settings/#allowed-hosts) |
|
||||
| PUID | Int | User ID | No | 911 | |
|
||||
| PGID | Int | Group ID | No | 911 | |
|
||||
| PUID | Int | User ID | No | 1000 | |
|
||||
| PGID | Int | Group ID | No | 1000 | |
|
||||
| TZ | String | Timezone | No | UTC | |
|
||||
| HTTPS_COOKIES | Bool | Cookies over HTTPS | No | False | [SESSION_COOKIE_SECURE](https://docs.djangoproject.com/en/4.1/ref/settings/#std-setting-SESSION_COOKIE_SECURE) and [CSRF_COOKIE_SECURE](https://docs.djangoproject.com/en/4.1/ref/settings/#std-setting-CSRF_COOKIE_SECURE)|
|
||||
| REGISTRATION | Bool | User registration | No | True | |
|
||||
|
||||
@@ -9,8 +9,6 @@ services:
|
||||
environment:
|
||||
- TMDB_API=TMDB_API_KEY
|
||||
- MAL_API=MAL_API_KEY
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- DB_HOST=db
|
||||
- DB_NAME=yamtrack
|
||||
- DB_USER=yamtrack
|
||||
|
||||
@@ -7,8 +7,6 @@ services:
|
||||
environment:
|
||||
- TMDB_API=TMDB_API_KEY
|
||||
- MAL_API=MAL_API_KEY
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
volumes:
|
||||
- ./db:/yamtrack/db
|
||||
ports:
|
||||
|
||||
@@ -4,8 +4,8 @@ set -e
|
||||
|
||||
python manage.py migrate --noinput
|
||||
|
||||
PUID=${PUID:-911}
|
||||
PGID=${PGID:-911}
|
||||
PUID=${PUID:-1000}
|
||||
PGID=${PGID:-1000}
|
||||
|
||||
groupmod -o -g "$PGID" abc
|
||||
usermod -o -u "$PUID" abc
|
||||
|
||||
Reference in New Issue
Block a user