Change user the container runs at

This commit is contained in:
GHOSCHT 2022-10-15 21:55:29 +02:00
parent ee29c9f3e7
commit ab7c729b5e
2 changed files with 37 additions and 18 deletions

View file

@ -17,6 +17,9 @@ services:
- traefik.http.routers.jellyfin.rule=Host(`jellyfin.franz.local`) - traefik.http.routers.jellyfin.rule=Host(`jellyfin.franz.local`)
- traefik.http.services.jellyfin.loadbalancer.server.port=8096 - traefik.http.services.jellyfin.loadbalancer.server.port=8096
restart: always restart: always
environment:
- PUID=1000
- PGID=1000
dns: dns:
- 1.1.1.1 - 1.1.1.1
vpn: vpn:
@ -29,6 +32,8 @@ services:
- WINDSCRIBE_LOCATION=NL - WINDSCRIBE_LOCATION=NL
- WINDSCRIBE_LANBYPASS=on - WINDSCRIBE_LANBYPASS=on
- WINDSCRIBE_FIREWALL=on - WINDSCRIBE_FIREWALL=on
- PUID=1000
- PGID=1000
env_file: env_file:
- windscribe_secrets.env - windscribe_secrets.env
volumes: volumes:
@ -37,7 +42,7 @@ services:
- /mnt/Serien:/series - /mnt/Serien:/series
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
restart: unless-stopped restart: always
dns: dns:
- 1.1.1.1 - 1.1.1.1
networks: networks:
@ -48,6 +53,8 @@ services:
container_name: transmission container_name: transmission
environment: environment:
- TZ=Europe/Berlin - TZ=Europe/Berlin
- PUID=1000
- PGID=1000
volumes: volumes:
- transmission_data:/config - transmission_data:/config
- /mnt/Downloads:/downloads - /mnt/Downloads:/downloads
@ -60,15 +67,17 @@ services:
- traefik.http.routers.transmission.rule=Host(`transmission.franz.local`) - traefik.http.routers.transmission.rule=Host(`transmission.franz.local`)
- traefik.http.services.transmission.loadbalancer.server.port=9091 - traefik.http.services.transmission.loadbalancer.server.port=9091
- traefik.docker.network=traefik-net - traefik.docker.network=traefik-net
restart: always
prowlarr: prowlarr:
image: lscr.io/linuxserver/prowlarr:develop image: lscr.io/linuxserver/prowlarr:develop
container_name: prowlarr container_name: prowlarr
environment: environment:
- TZ=Europe/Berlin - TZ=Europe/Berlin
- PUID=1000
- PGID=1000
volumes: volumes:
- prowlarr_data:/config - prowlarr_data:/config
restart: unless-stopped restart: always
network_mode: service:vpn network_mode: service:vpn
depends_on: depends_on:
- vpn - vpn
@ -85,11 +94,13 @@ services:
container_name: radarr container_name: radarr
environment: environment:
- TZ=Europe/Berlin - TZ=Europe/Berlin
- PUID=1000
- PGID=1000
volumes: volumes:
- radarr_data:/config - radarr_data:/config
- /mnt/Filme:/movies - /mnt/Filme:/movies
- /mnt/Downloads:/downloads - /mnt/Downloads:/downloads
restart: unless-stopped restart: always
network_mode: service:vpn network_mode: service:vpn
depends_on: depends_on:
- vpn - vpn
@ -107,11 +118,13 @@ services:
container_name: sonarr container_name: sonarr
environment: environment:
- TZ=Europe/Berlin - TZ=Europe/Berlin
- PUID=1000
- PGID=1000
volumes: volumes:
- sonarr_data:/config - sonarr_data:/config
- /mnt/Serien:/series - /mnt/Serien:/series
- /mnt/Downloads:/downloads - /mnt/Downloads:/downloads
restart: unless-stopped restart: always
network_mode: service:vpn network_mode: service:vpn
depends_on: depends_on:
- vpn - vpn
@ -125,33 +138,36 @@ services:
- traefik.docker.network=traefik-net - traefik.docker.network=traefik-net
bazarr: bazarr:
image: lscr.io/linuxserver/bazarr image: hotio/bazarr:latest
container_name: bazarr container_name: bazarr
environment: environment:
- TZ=Europe/Berlin - TZ=Europe/Berlin
- PUID=1000
- PGID=1000
volumes: volumes:
- bazarr_data:/config - bazarr_data:/config
- /mnt/Filme:/movies - /mnt/Filme:/movies
- /mnt/Serien:/series - /mnt/Serien:/series
restart: unless-stopped restart: always
network_mode: service:vpn
depends_on:
- vpn
- torrent
- prowlarr
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.bazarr.entrypoints=web - traefik.http.routers.bazarr.entrypoints=web
- traefik.http.routers.bazarr.rule=Host(`bazarr.franz.local`) - traefik.http.routers.bazarr.rule=Host(`bazarr.franz.local`)
- traefik.http.services.bazarr.loadbalancer.server.port=6767 - traefik.http.services.bazarr.loadbalancer.server.port=6767
- traefik.docker.network=traefik-net - traefik.docker.network=traefik-net
networks:
traefik_net:
dns:
- 1.1.1.1
jellyseerr: jellyseerr:
container_name: jellyseerr container_name: jellyseerr
image: fallenbagel/jellyseerr image: fallenbagel/jellyseerr
environment: environment:
- TZ=Europe/Berlin - TZ=Europe/Berlin
restart: unless-stopped - PUID=1000
- PGID=1000
restart: always
volumes: volumes:
- jellyseerr_data:/app/config - jellyseerr_data:/app/config
depends_on: depends_on:

View file

@ -6,6 +6,9 @@ services:
image: dperson/samba image: dperson/samba
volumes: volumes:
- /media/hdd/nas:/mount - /media/hdd/nas:/mount
environment:
- USERID=1000
- GROUPID=1000
ports: ports:
- "139:139" - "139:139"
- "445:445" - "445:445"