Rename env variables

This commit is contained in:
Colin Hebert
2023-01-04 08:36:41 +01:00
parent ecaa2c6cc3
commit e89747bb50
10 changed files with 49 additions and 49 deletions

View File

@@ -24,7 +24,7 @@ services:
- docker - docker
- macvlan - macvlan
environment: environment:
- NAS_COMPOSE_DOMAIN=${NAS_COMPOSE_DOMAIN?} - NASCOMPOSE_DOMAIN=${NASCOMPOSE_DOMAIN?}
# TODO: Move to configs? # TODO: Move to configs?
volumes: volumes:
- traefik_dynamic_config:/etc/traefik/dynamic/:ro - traefik_dynamic_config:/etc/traefik/dynamic/:ro
@@ -80,27 +80,27 @@ volumes:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/portainer/volumes/data/ device: ${NASCOMPOSE_SERVICES?}/portainer/volumes/data/
labels: labels:
nas-compose.boostrap: true nas-compose.boostrap: true
traefik_dynamic_config: traefik_dynamic_config:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/traefik/volumes/config/ device: ${NASCOMPOSE_SERVICES?}/traefik/volumes/config/
labels: labels:
nas-compose.boostrap: true nas-compose.boostrap: true
configs: configs:
traefik_config: traefik_config:
file: ${SERVICES_DIR?}/traefik/configs/traefik.yml file: ${NASCOMPOSE_SERVICES?}/traefik/configs/traefik.yml
secrets: secrets:
traefik_password: traefik_password:
file: ${SERVICES_DIR?}/traefik/secrets/htpasswd file: ${NASCOMPOSE_SERVICES?}/traefik/secrets/htpasswd
traefik_tls_cert: traefik_tls_cert:
file: ${SERVICES_DIR?}/traefik/secrets/traefik.cert file: ${NASCOMPOSE_SERVICES?}/traefik/secrets/traefik.cert
traefik_tls_key: traefik_tls_key:
file: ${SERVICES_DIR?}/traefik/secrets/traefik.key file: ${NASCOMPOSE_SERVICES?}/traefik/secrets/traefik.key
portainer_password: portainer_password:
file: ${SERVICES_DIR?}/portainer/secrets/portainer_password file: ${NASCOMPOSE_SERVICES?}/portainer/secrets/portainer_password

View File

@@ -112,29 +112,29 @@ volumes:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/mylar/volumes/config/ device: ${NASCOMPOSE_SERVICES?}/mylar/volumes/config/
lazylibrarian_config: lazylibrarian_config:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/lazylibrarian/volumes/config/ device: ${NASCOMPOSE_SERVICES?}/lazylibrarian/volumes/config/
sonarr_config: sonarr_config:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/sonarr/volumes/config/ device: ${NASCOMPOSE_SERVICES?}/sonarr/volumes/config/
radarr_config: radarr_config:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/radarr/volumes/config/ device: ${NASCOMPOSE_SERVICES?}/radarr/volumes/config/
bazarr_config: bazarr_config:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/bazarr/volumes/config/ device: ${NASCOMPOSE_SERVICES?}/bazarr/volumes/config/
ombi_config: ombi_config:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/ombi/volumes/config/ device: ${NASCOMPOSE_SERVICES?}/ombi/volumes/config/

View File

@@ -24,7 +24,7 @@ docker run --rm -p 9443:9443 -v /var/run/docker.sock:/var/run/docker.sock portai
``` ```
### Environment variables ### Environment variables
- `SERVICES_DIR`: Absolute path to the `services` folder - `NASCOMPOSE_SERVICES`: Absolute path to the `services` folder
## Docker ## Docker
[`alpine/socat`](https://hub.docker.com/r/alpine/socat/) exposes the docker socket as a port. [`alpine/socat`](https://hub.docker.com/r/alpine/socat/) exposes the docker socket as a port.

View File

@@ -75,43 +75,43 @@ volumes:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${DOWNLOADS_DIR?}/torrents/completed device: ${NASCOMPOSE_DOWNLOADS?}/torrents/completed
usenet_completed: usenet_completed:
name: usenet_completed name: usenet_completed
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${DOWNLOADS_DIR?}/usenet/completed device: ${NASCOMPOSE_DOWNLOADS?}/usenet/completed
torrents: torrents:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${DOWNLOADS_DIR?}/torrents device: ${NASCOMPOSE_DOWNLOADS?}/torrents
usenet: usenet:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${DOWNLOADS_DIR?}/usenet device: ${NASCOMPOSE_DOWNLOADS?}/usenet
prowlarr_config: prowlarr_config:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/prowlarr/volumes/config/ device: ${NASCOMPOSE_SERVICES?}/prowlarr/volumes/config/
transmission_config: transmission_config:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/transmission/volumes/config/ device: ${NASCOMPOSE_SERVICES?}/transmission/volumes/config/
transmission_scripts: transmission_scripts:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/transmission/volumes/scripts/ device: ${NASCOMPOSE_SERVICES?}/transmission/volumes/scripts/
secrets: secrets:
transmission_rpc_creds: transmission_rpc_creds:
file: ${SERVICES_DIR?}/transmission/secrets/rpc_creds file: ${NASCOMPOSE_SERVICES?}/transmission/secrets/rpc_creds
transmission_vpn_creds: transmission_vpn_creds:
file: ${SERVICES_DIR?}/transmission/secrets/vpn_creds file: ${NASCOMPOSE_SERVICES?}/transmission/secrets/vpn_creds

View File

@@ -57,39 +57,39 @@ volumes:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${MEDIA_DIR?}/books/ device: ${NASCOMPOSE_MEDIA?}/books/
comics: comics:
name: comics name: comics
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${MEDIA_DIR?}/comics/ device: ${NASCOMPOSE_MEDIA?}/comics/
movies: movies:
name: movies name: movies
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${MEDIA_DIR?}/movies/ device: ${NASCOMPOSE_MEDIA?}/movies/
tv: tv:
name: tv name: tv
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${MEDIA_DIR?}/tv/ device: ${NASCOMPOSE_MEDIA?}/tv/
recycle_bin: recycle_bin:
name: recycle_bin name: recycle_bin
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${MEDIA_DIR?}/recycle_bin/ device: ${NASCOMPOSE_MEDIA?}/recycle_bin/
plex_data: plex_data:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/plex/volumes/data/ device: ${NASCOMPOSE_SERVICES?}/plex/volumes/data/
plaxt_keystore: plaxt_keystore:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/plaxt/volumes/keystore/ device: ${NASCOMPOSE_SERVICES?}/plaxt/volumes/keystore/

View File

@@ -1,8 +1,8 @@
NAS_COMPOSE_DOMAIN= NASCOMPOSE_DOMAIN=
DUCK_DNS_DOMAIN= NASCOMPOSE_DUCKDNS=
COMPOSE_PROFILES=ebooks,plaxt,ombi COMPOSE_PROFILES=ebooks,plaxt,ombi
SERVICES_DIR= NASCOMPOSE_SERVICES=
DOWNLOADS_DIR= NASCOMPOSE_DOWNLOADS=
MEDIA_DIR= NASCOMPOSE_MEDIA=

View File

@@ -29,8 +29,8 @@ volumes:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/gotify/volumes/data/ device: ${NASCOMPOSE_SERVICES?}/gotify/volumes/data/
secrets: secrets:
gotify_admin_password: gotify_admin_password:
file: ${SERVICES_DIR?}/gotify/secrets/admin_password file: ${NASCOMPOSE_SERVICES?}/gotify/secrets/admin_password

View File

@@ -3,7 +3,7 @@ providers:
endpoint: tcp://docker:2375 endpoint: tcp://docker:2375
exposedByDefault: false exposedByDefault: false
network: traefik network: traefik
defaultRule: Host(`{{ index .Labels "com.docker.compose.service" }}.{{ env `NAS_COMPOSE_DOMAIN` }}`) defaultRule: Host(`{{ index .Labels "com.docker.compose.service" }}.{{ env `NASCOMPOSE_DOMAIN` }}`)
file: file:
directory: /etc/traefik/dynamic/ directory: /etc/traefik/dynamic/

View File

@@ -1,7 +1,7 @@
http: http:
routers: routers:
traefik: traefik:
rule: Host(`traefik.{{ env `NAS_COMPOSE_DOMAIN` }}`) rule: Host(`traefik.{{ env `NASCOMPOSE_DOMAIN` }}`)
service: api@internal service: api@internal
middlewares: middlewares:
- traefik-auth - traefik-auth

View File

@@ -31,7 +31,7 @@ services:
duckdns: duckdns:
image: linuxserver/duckdns image: linuxserver/duckdns
environment: environment:
- SUBDOMAINS=${DUCK_DNS_DOMAIN?} - SUBDOMAINS=${NASCOMPOSE_DUCKDNS?}
- FILE__TOKEN=/run/secrets/duckdns_token - FILE__TOKEN=/run/secrets/duckdns_token
secrets: secrets:
- duckdns_token - duckdns_token
@@ -50,34 +50,34 @@ volumes:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/smokeping/volumes/data/ device: ${NASCOMPOSE_SERVICES?}/smokeping/volumes/data/
smokeping_config: smokeping_config:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/smokeping/volumes/config/ device: ${NASCOMPOSE_SERVICES?}/smokeping/volumes/config/
ddclient_data: ddclient_data:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/ddclient/volumes/data/ device: ${NASCOMPOSE_SERVICES?}/ddclient/volumes/data/
ddclient_config: ddclient_config:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/ddclient/volumes/config/ device: ${NASCOMPOSE_SERVICES?}/ddclient/volumes/config/
ddclient_init: ddclient_init:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${SERVICES_DIR?}/ddclient/volumes/init/ device: ${NASCOMPOSE_SERVICES?}/ddclient/volumes/init/
configs: configs:
ddclient_config_tpl: ddclient_config_tpl:
file: ${SERVICES_DIR?}/ddclient/configs/ddclient.conf.tpl file: ${NASCOMPOSE_SERVICES?}/ddclient/configs/ddclient.conf.tpl
secrets: secrets:
watchtower_gotify_token: watchtower_gotify_token:
file: ${SERVICES_DIR?}/watchtower/secrets/gotify_token file: ${NASCOMPOSE_SERVICES?}/watchtower/secrets/gotify_token
duckdns_token: duckdns_token:
file: ${SERVICES_DIR?}/ddclient/secrets/duckdns_token file: ${NASCOMPOSE_SERVICES?}/ddclient/secrets/duckdns_token