services: use .env files for variables

This commit is contained in:
Bruno BELANYI 2020-05-07 00:11:47 +02:00
parent f2d67c4aee
commit c5a2f1ab71
21 changed files with 148 additions and 125 deletions

4
airsonic/airsonic.env Normal file
View file

@ -0,0 +1,4 @@
PUID=1000
PGID=1000
TZ=Europe/Paris
CONTEXT_PATH=/

4
bazarr/bazarr.env Normal file
View file

@ -0,0 +1,4 @@
PUID=1000
PGID=1000
TZ=Europe/Paris
UMASK_SET=022

View file

@ -0,0 +1,4 @@
PUID=1000
PGID=1000
TZ=Europe/Paris
DOCKER_MODS=linuxserver/calibre-web:calibre

5
calibre/calibre.env Normal file
View file

@ -0,0 +1,5 @@
PUID=1000
PGID=1000
TZ=Europe/Paris
# GUAC_USER=FIXME
# GUAC_PASS=FIXME

View file

@ -7,19 +7,8 @@ services:
restart: unless-stopped restart: unless-stopped
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
environment: env_file:
- PUID=1000 - ./letsencrypt/letsencrypt.env
- PGID=1000
- TZ=Europe/Paris
- URL=belanyi.fr
- SUBDOMAINS=wildcard
- VALIDATION=dns
- DNSPLUGIN=gandi #optional
- EMAIL=brunobelanyi@gmail.com #optional
- DHLEVEL=2048 #optional
- ONLY_SUBDOMAINS=false #optional
- EXTRA_DOMAINS= #optional
- STAGING=false #optional
volumes: volumes:
- ./letsencrypt:/config - ./letsencrypt:/config
ports: ports:
@ -29,9 +18,8 @@ services:
image: linuxserver/freshrss image: linuxserver/freshrss
container_name: freshrss container_name: freshrss
restart: unless-stopped restart: unless-stopped
environment: env_file:
- PGID=1001 - ./freshrss/freshrss.env
- PUID=1000
volumes: volumes:
- ./freshrss:/config - ./freshrss:/config
expose: expose:
@ -41,6 +29,8 @@ services:
image: rssbridge/rss-bridge image: rssbridge/rss-bridge
container_name: rss-bridge container_name: rss-bridge
restart: unless-stopped restart: unless-stopped
env_file:
- ./rss-bridge/rss-bridge.env
volumes: volumes:
- ./rss-bridge/whitelist.txt:/app/whitelist.txt - ./rss-bridge/whitelist.txt:/app/whitelist.txt
expose: expose:
@ -50,12 +40,9 @@ services:
image: linuxserver/calibre image: linuxserver/calibre
container_name: calibre container_name: calibre
restart: unless-stopped restart: unless-stopped
environment: env_file:
- PUID=1000 - ./calibre/calibre.env
- PGID=1000 - ./calibre/calibre.env.secret
- TZ=Europe/Paris
- GUAC_USER=ambroisie # optional
- GUAC_PASS=3e0109e17016d3a2dc0a350d9a9ca104 # password
volumes: volumes:
- ~/library:/config - ~/library:/config
- ~/books_to_add:/books_to_add - ~/books_to_add:/books_to_add
@ -66,11 +53,8 @@ services:
image: linuxserver/calibre-web image: linuxserver/calibre-web
container_name: calibre-web container_name: calibre-web
restart: unless-stopped restart: unless-stopped
environment: env_file:
- PUID=1000 - ./calibre-web/calibre-web.env
- PGID=1000
- TZ=Europe/Paris
- DOCKER_MODS=linuxserver/calibre-web:calibre
volumes: volumes:
- ./calibre-web:/config - ./calibre-web:/config
- ~/library:/books - ~/library:/books
@ -81,15 +65,8 @@ services:
image: gitea/gitea:latest image: gitea/gitea:latest
container_name: gitea container_name: gitea
restart: unless-stopped restart: unless-stopped
environment: env_file:
- APP_NAME="Ambroisie's Gitea" - gitea/gitea.env
- RUN_MODE=prod
- DOMAIN=gitea.belanyi.fr
- ROOT_URL=https://gitea.belanyi.fr
- LFS_START_SERVER=true
- SSH_PORT=222
- USER_UID=1000
- USER_GID=1000
volumes: volumes:
- ./gitea:/data - ./gitea:/data
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
@ -103,10 +80,8 @@ services:
image: linuxserver/pyload image: linuxserver/pyload
container_name: pyload container_name: pyload
restart: unless-stopped restart: unless-stopped
environment: env_file:
- TZ=Europe/Paris - ./pyload/pyload.env
- PUID=1000
- PGID=1000
volumes: volumes:
- ./pyload:/config - ./pyload:/config
- ~/downloads:/downloads - ~/downloads:/downloads
@ -118,14 +93,8 @@ services:
image: linuxserver/transmission image: linuxserver/transmission
container_name: transmission container_name: transmission
restart: unless-stopped restart: unless-stopped
environment: env_file:
- PUID=1000 - ./transmission/transmission.env
- PGID=1000
- TZ=Europe/Paris
# UI can be combustion-release, transmission-web-control, or kettu
- TRANSMISSION_WEB_HOME=/combustion-release/
- USER=Ambroisie #optional
- PASS=yb87AdRXZJPK2w^QFY!BM8QD4Pn5rpeK #optional
volumes: volumes:
- ./transmission:/config - ./transmission:/config
- ~/downloads:/downloads - ~/downloads:/downloads
@ -139,10 +108,8 @@ services:
image: linuxserver/sabnzbd image: linuxserver/sabnzbd
container_name: sabnzbd container_name: sabnzbd
restart: unless-stopped restart: unless-stopped
environment: env_file:
- PUID=1000 - ./sabnzbd/sabnzbd.env
- PGID=1000
- TZ=Europe/Paris
volumes: volumes:
- ./sabnzbd:/config - ./sabnzbd:/config
- ~/downloads:/downloads - ~/downloads:/downloads
@ -154,10 +121,8 @@ services:
image: linuxserver/nzbhydra2 image: linuxserver/nzbhydra2
container_name: nzbhydra2 container_name: nzbhydra2
restart: unless-stopped restart: unless-stopped
environment: env_file:
- PUID=1000 - ./nzbhydra2/nzbhydra.env
- PGID=1000
- TZ=Europe/London
volumes: volumes:
- ./nzbhydra2:/config - ./nzbhydra2:/config
- ~/downloads:/downloads - ~/downloads:/downloads
@ -168,10 +133,8 @@ services:
image: linuxserver/jackett image: linuxserver/jackett
container_name: jackett container_name: jackett
restart: unless-stopped restart: unless-stopped
environment: env_file:
- PUID=1000 - ./jackett/jackett.env
- PGID=1000
- TZ=Europe/Paris
volumes: volumes:
- ./jackett:/config - ./jackett:/config
- ~/downloads/blackhole:/downloads - ~/downloads/blackhole:/downloads
@ -182,11 +145,8 @@ services:
image: linuxserver/sonarr image: linuxserver/sonarr
container_name: sonarr container_name: sonarr
restart: unless-stopped restart: unless-stopped
environment: env_file:
- PUID=1000 - ./sonarr/sonarr.env
- PGID=1000
- TZ=Europe/Paris
- UMASK_SET=022 #optional
volumes: volumes:
- ./sonarr:/config - ./sonarr:/config
- ~/videos/shows:/tv - ~/videos/shows:/tv
@ -198,11 +158,8 @@ services:
image: linuxserver/radarr image: linuxserver/radarr
container_name: radarr container_name: radarr
restart: unless-stopped restart: unless-stopped
environment: env_file:
- PUID=1000 - ./radarr/radarr.env
- PGID=1000
- TZ=Europe/Paris
- UMASK_SET=022 #optional
volumes: volumes:
- ./radarr:/config - ./radarr:/config
- ~/videos/movies:/movies - ~/videos/movies:/movies
@ -214,11 +171,8 @@ services:
image: linuxserver/bazarr image: linuxserver/bazarr
container_name: bazarr container_name: bazarr
restart: unless-stopped restart: unless-stopped
environment: env_file:
- PUID=1000 - ./bazarr/bazarr.env
- PGID=1000
- TZ=Europe/Paris
- UMASK_SET=022 #optional
volumes: volumes:
- ./bazarr:/config - ./bazarr:/config
- ~/videos/movies:/movies - ~/videos/movies:/movies
@ -230,11 +184,8 @@ services:
image: linuxserver/lidarr image: linuxserver/lidarr
container_name: lidarr container_name: lidarr
restart: unless-stopped restart: unless-stopped
environment: env_file:
- PUID=1000 - lidarr/lidarr.env
- PGID=1000
- TZ=Europe/Paris
- UMASK_SET=022 #optional
volumes: volumes:
- ./lidarr:/config - ./lidarr:/config
- ~/music:/music - ~/music:/music
@ -246,13 +197,8 @@ services:
image: linuxserver/quassel-core image: linuxserver/quassel-core
container_name: quassel-core container_name: quassel-core
restart: unless-stopped restart: unless-stopped
environment: env_file:
- PUID=1000 - ./quassel/quassel.env
- PGID=1000
- TZ=Europe/Paris
- RUN_OPTS=--config-from-environment #optional
- DB_BACKEND=SQLite
- AUTH_AUTHENTICATOR=Database
volumes: volumes:
- ./quassel:/config - ./quassel:/config
ports: ports:
@ -263,11 +209,8 @@ services:
image: linuxserver/emby image: linuxserver/emby
container_name: emby container_name: emby
restart: unless-stopped restart: unless-stopped
environment: env_file:
- PUID=1000 - ./emby/emby.env
- PGID=1000
- TZ=Europe/Paris
- UMASK_SET=022 #optional
volumes: volumes:
- ./emby:/config - ./emby:/config
- ~/videos/shows:/data/tvshows - ~/videos/shows:/data/tvshows
@ -280,11 +223,8 @@ services:
image: linuxserver/airsonic image: linuxserver/airsonic
container_name: airsonic container_name: airsonic
restart: unless-stopped restart: unless-stopped
environment: env_file:
- PUID=1000 - ./airsonic/airsonic.env
- PGID=1000
- TZ=Europe/Paris
- CONTEXT_PATH=/
volumes: volumes:
- ./airsonic/:/config - ./airsonic/:/config
- ~/music/:/music - ~/music/:/music
@ -297,6 +237,8 @@ services:
image: gotson/komga image: gotson/komga
container_name: komga container_name: komga
restart: unless-stopped restart: unless-stopped
env_file:
- ./komga/komga.env
volumes: volumes:
- ./komga:/config - ./komga:/config
- ~/comics:/books/comics - ~/comics:/books/comics
@ -315,34 +257,8 @@ services:
interval: 60s interval: 60s
timeout: 15s timeout: 15s
retries: 5 retries: 5
environment: env_file:
PHOTOPRISM_URL: "https://photoprism.belanyi.fr" - ./photoprism/photoprism.env
PHOTOPRISM_TITLE: "PhotoPrism"
PHOTOPRISM_SUBTITLE: "Browse your life"
PHOTOPRISM_DESCRIPTION: "Personal Photo Management powered by Go and Google TensorFlow. Free and open-source."
PHOTOPRISM_AUTHOR: "Anonymous"
PHOTOPRISM_TWITTER: "@browseyourlife"
PHOTOPRISM_UPLOAD_NSFW: "true"
PHOTOPRISM_DETECT_NSFW: "true"
PHOTOPRISM_EXPERIMENTAL: "false"
PHOTOPRISM_DEBUG: "false"
PHOTOPRISM_READONLY: "false"
PHOTOPRISM_PUBLIC: "false"
PHOTOPRISM_DISABLE_SETTINGS: "false"
PHOTOPRISM_HTTP_HOST: "0.0.0.0"
PHOTOPRISM_HTTP_PORT: 2342
PHOTOPRISM_TIDB_HOST: "0.0.0.0"
PHOTOPRISM_TIDB_PORT: 2343 # Port for built-in TiDB SQL server (driver "tidb")
PHOTOPRISM_TIDB_PASSWORD: "photoprism" # Plain text only (username "root")
PHOTOPRISM_ADMIN_PASSWORD: "$$2y$$10$$5/1WPeVMXk4SjBKyDdbqhuQU3RPiYyGZGl8yh0Fxa9eno6Ou/FbSi" # Plain text or bcrypt hash (escape "$" with "$$")
#PHOTOPRISM_WEBDAV_PASSWORD: "photoprism" # Plain text only (username "photoprism")
PHOTOPRISM_DATABASE_DRIVER: "tidb" # Change to "mysql" for external MySQL or MariaDB
PHOTOPRISM_DATABASE_DSN: "root:photoprism@tcp(localhost:2343)/photoprism?parseTime=true"
PHOTOPRISM_JPEG_QUALITY: 90 # Use 95 for high-quality thumbnails (requires more storage)
PHOTOPRISM_THUMB_FILTER: "lanczos" # Resample filter, best to worst: blackman, lanczos, cubic, linear
PHOTOPRISM_THUMB_UNCACHED: "false" # On-demand rendering of default thumbnails (high memory and cpu usage)
PHOTOPRISM_THUMB_SIZE: 2048 # Default thumbnail size limit (default 2048, min 720, max 3840)
PHOTOPRISM_THUMB_LIMIT: 3840 # On-demand thumbnail size limit (default 2048, min 720, max 3840)
volumes: volumes:
- ~/pictures/originals:/photoprism/originals - ~/pictures/originals:/photoprism/originals
- ~/pictures/import:/photoprism/import - ~/pictures/import:/photoprism/import

4
emby/emby.env Normal file
View file

@ -0,0 +1,4 @@
PUID=1000
PGID=1000
TZ=Europe/Paris
UMASK_SET=022

3
freshrss/freshrss.env Normal file
View file

@ -0,0 +1,3 @@
PUID=1000
PGID=1000
TZ=Europe/Paris

8
gitea/gitea.env Normal file
View file

@ -0,0 +1,8 @@
USER_UID=1000
USER_GID=1000
APP_NAME=Ambroisie's Gitea
RUN_MODE=prod
DOMAIN=gitea.belanyi.fr
ROOT_URL=https://gitea.belanyi.fr
LFS_START_SERVER=true
SSH_PORT=222

3
jackett/jackett.env Normal file
View file

@ -0,0 +1,3 @@
PUID=1000
PGID=1000
TZ=Europe/Paris

0
komga/komga.env Normal file
View file

View file

@ -0,0 +1,12 @@
PUID=1000
PGID=1000
TZ=Europe/Paris
URL=belanyi.fr
SUBDOMAINS=wildcard
VALIDATION=dns
DNSPLUGIN=gandi
EMAIL=brunobelanyi@gmail.com
DHLEVEL=2048
ONLY_SUBDOMAINS=false
EXTRA_DOMAINS=
STAGING=false

4
lidarr/lidarr.env Normal file
View file

@ -0,0 +1,4 @@
PUID=1000
PGID=1000
TZ=Europe/Paris
UMASK_SET=022

3
nzbhydra2/nzbhydra.env Normal file
View file

@ -0,0 +1,3 @@
PUID=1000
PGID=1000
TZ=Europe/Paris

26
photoprism/photoprism.env Normal file
View file

@ -0,0 +1,26 @@
PHOTOPRISM_URL=https://photoprism.belanyi.fr
PHOTOPRISM_TITLE=PhotoPrism
PHOTOPRISM_SUBTITLE=Browse your life
PHOTOPRISM_DESCRIPTION=Personal Photo Management powered by Go and Google TensorFlow. Free and open-source.
PHOTOPRISM_AUTHOR=Anonymous
PHOTOPRISM_TWITTER=@browseyourlife
PHOTOPRISM_UPLOAD_NSFW=true
PHOTOPRISM_DETECT_NSFW=true
PHOTOPRISM_EXPERIMENTAL=false
PHOTOPRISM_DEBUG=false
PHOTOPRISM_READONLY=false
PHOTOPRISM_PUBLIC=false
PHOTOPRISM_DISABLE_SETTINGS=false
PHOTOPRISM_HTTP_HOST=0.0.0.0
PHOTOPRISM_HTTP_PORT=2342
PHOTOPRISM_TIDB_HOST=0.0.0.0
PHOTOPRISM_TIDB_PORT=2343
PHOTOPRISM_TIDB_PASSWORD=photoprism
PHOTOPRISM_ADMIN_PASSWORD=$2y$10$5/1WPeVMXk4SjBKyDdbqhuQU3RPiYyGZGl8yh0Fxa9eno6Ou/FbSi
PHOTOPRISM_DATABASE_DRIVER=tidb
PHOTOPRISM_DATABASE_DSN=root:photoprism@tcp(localhost:2343)/photoprism?parseTime=true
PHOTOPRISM_JPEG_QUALITY=90
PHOTOPRISM_THUMB_FILTER=lanczos
PHOTOPRISM_THUMB_UNCACHED=false
PHOTOPRISM_THUMB_SIZE=2048
PHOTOPRISM_THUMB_LIMIT=3840

3
pyload/pyload.env Normal file
View file

@ -0,0 +1,3 @@
PUID=1000
PGID=1000
TZ=Europe/Paris

6
quassel/quassel.env Normal file
View file

@ -0,0 +1,6 @@
PUID=1000
PGID=1000
TZ=Europe/Paris
RUN_OPTS=--config-from-environment
DB_BACKEND=SQLite
AUTH_AUTHENTICATOR=Database

4
radarr/radarr.env Normal file
View file

@ -0,0 +1,4 @@
PUID=1000
PGID=1000
TZ=Europe/Paris
UMASK_SET=022

View file

3
sabnzbd/sabnzbd.env Normal file
View file

@ -0,0 +1,3 @@
PUID=1000
PGID=1000
TZ=Europe/Paris

4
sonarr/sonarr.env Normal file
View file

@ -0,0 +1,4 @@
PUID=1000
PGID=1000
TZ=Europe/Paris
UMASK_SET=022

View file

@ -0,0 +1,7 @@
PUID=1000
PGID=1000
TZ=Europe/Paris
# UI can be combustion-release, transmission-web-control, or kettu
TRANSMISSION_WEB_HOME=/combustion-release/
USER=Ambroisie #optional
PASS=yb87AdRXZJPK2w^QFY!BM8QD4Pn5rpeK #optional