Set UID/GID for users

This commit is contained in:
Colin Hebert
2023-01-05 07:20:14 +01:00
parent b57e0770ab
commit 25626f55f0
7 changed files with 37 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ services:
--host tcp://docker:2375 --host tcp://docker:2375
--hide-label nas-compose.boostrap=true --hide-label nas-compose.boostrap=true
--admin-password-file /run/secrets/portainer_password --admin-password-file /run/secrets/portainer_password
user: ${NASCOMPOSE_UID?}:${NASCOMPOSE_GID?}
networks: networks:
- docker - docker
- traefik - traefik

View File

@@ -4,6 +4,9 @@ services:
mylar: mylar:
image: linuxserver/mylar3 image: linuxserver/mylar3
profiles: [ebooks] profiles: [ebooks]
environment:
PUID: ${NASCOMPOSE_UID?}
PGID: ${NASCOMPOSE_GID?}
networks: networks:
- traefik - traefik
- gotify - gotify
@@ -20,6 +23,9 @@ services:
lazylibrarian: lazylibrarian:
image: linuxserver/lazylibrarian image: linuxserver/lazylibrarian
profiles: [ebooks] profiles: [ebooks]
environment:
PUID: ${NASCOMPOSE_UID?}
PGID: ${NASCOMPOSE_GID?}
networks: networks:
- traefik - traefik
- gotify - gotify
@@ -35,6 +41,9 @@ services:
sonarr: sonarr:
image: linuxserver/sonarr image: linuxserver/sonarr
environment:
PUID: ${NASCOMPOSE_UID?}
PGID: ${NASCOMPOSE_GID?}
networks: networks:
- traefik - traefik
- gotify - gotify
@@ -50,6 +59,9 @@ services:
radarr: radarr:
image: linuxserver/radarr image: linuxserver/radarr
environment:
PUID: ${NASCOMPOSE_UID?}
PGID: ${NASCOMPOSE_GID?}
networks: networks:
- traefik - traefik
- gotify - gotify
@@ -65,6 +77,9 @@ services:
bazarr: bazarr:
image: linuxserver/bazarr image: linuxserver/bazarr
environment:
PUID: ${NASCOMPOSE_UID?}
PGID: ${NASCOMPOSE_GID?}
networks: networks:
- traefik - traefik
- gotify - gotify
@@ -78,6 +93,9 @@ services:
ombi: ombi:
image: linuxserver/ombi image: linuxserver/ombi
environment:
PUID: ${NASCOMPOSE_UID?}
PGID: ${NASCOMPOSE_GID?}
networks: networks:
- traefik - traefik
- downloads - downloads

View File

@@ -17,6 +17,9 @@ services:
prowlarr: prowlarr:
image: linuxserver/prowlarr image: linuxserver/prowlarr
environment:
PUID: ${NASCOMPOSE_UID?}
PGID: ${NASCOMPOSE_GID?}
networks: networks:
- default - default
- traefik - traefik
@@ -38,6 +41,8 @@ services:
transmission: transmission:
image: haugene/transmission-openvpn image: haugene/transmission-openvpn
environment: environment:
PUID: ${NASCOMPOSE_UID?}
PGID: ${NASCOMPOSE_GID?}
OPENVPN_PROVIDER: PIA OPENVPN_PROVIDER: PIA
OPENVPN_CONFIG: ${NASCOMPOSE_TRANSMISSION_VPNREGION?} OPENVPN_CONFIG: ${NASCOMPOSE_TRANSMISSION_VPNREGION?}
OPENVPN_OPTS: --inactive 3600 --ping 10 --ping-exit 60 OPENVPN_OPTS: --inactive 3600 --ping 10 --ping-exit 60

View File

@@ -11,6 +11,8 @@ services:
plex: plex:
image: plexinc/pms-docker:plexpass image: plexinc/pms-docker:plexpass
environment: environment:
PLEX_UID: ${NASCOMPOSE_UID?}
PLEX_GID: ${NASCOMPOSE_GID?}
PLEX_CLAIM: ${NASCOMPOSE_PLEX_CLAIM} PLEX_CLAIM: ${NASCOMPOSE_PLEX_CLAIM}
ports: ports:
- 32400:32400 - 32400:32400
@@ -31,6 +33,7 @@ services:
plaxt: plaxt:
image: xanderstrike/goplaxt image: xanderstrike/goplaxt
profiles: [plaxt] profiles: [plaxt]
user: ${NASCOMPOSE_UID?}:${NASCOMPOSE_GID?}
environment: environment:
TRAKT_ID: '' #TODO Define properly TRAKT_ID: '' #TODO Define properly
TRAKT_SECRET: '' #TODO Define properly TRAKT_SECRET: '' #TODO Define properly

View File

@@ -1,5 +1,8 @@
COMPOSE_PROFILES=ebooks,plaxt,ombi COMPOSE_PROFILES=ebooks,plaxt,ombi
NASCOMPOSE_UID=1000
NASCOMPOSE_GID=1000
NASCOMPOSE_SERVICES= NASCOMPOSE_SERVICES=
NASCOMPOSE_DOWNLOADS= NASCOMPOSE_DOWNLOADS=
NASCOMPOSE_MEDIA= NASCOMPOSE_MEDIA=

View File

@@ -6,6 +6,7 @@ services:
entrypoint: ./data/entrypoint.sh entrypoint: ./data/entrypoint.sh
environment: environment:
GOTIFY_DEFAULTUSER_PASS_FILE: /run/secrets/admin_password GOTIFY_DEFAULTUSER_PASS_FILE: /run/secrets/admin_password
user: ${NASCOMPOSE_UID?}:${NASCOMPOSE_GID?}
networks: networks:
- gotify - gotify
- traefik - traefik

View File

@@ -19,6 +19,9 @@ services:
smokeping: smokeping:
image: linuxserver/smokeping image: linuxserver/smokeping
environment:
PUID: ${NASCOMPOSE_UID?}
PGID: ${NASCOMPOSE_GID?}
networks: networks:
- traefik - traefik
volumes: volumes:
@@ -39,6 +42,9 @@ services:
heimdall: heimdall:
image: linuxserver/heimdall image: linuxserver/heimdall
environment:
PUID: ${NASCOMPOSE_UID?}
PGID: ${NASCOMPOSE_GID?}
networks: networks:
- traefik - traefik
volumes: volumes: