Add environment configuration file

This commit is contained in:
Tanguy Herbron 2021-05-25 10:56:53 +02:00
parent 3fd86754c7
commit 08ff527a05
3 changed files with 14 additions and 12 deletions

1
.env.sample Normal file
View File

@ -0,0 +1 @@
FILE_PATH=

View File

@ -36,10 +36,10 @@ services:
- PGID=1000 - PGID=1000
- TZ=Europe/Copenhagen - TZ=Europe/Copenhagen
volumes: volumes:
- /media/alpha/torrent-stack/radarr/config:/config - ./radarr/config:/config
- /media/alpha/jellyfin/movies:/movies - ${FILE_PATH}/jellyfin/movies:/movies
- /media/alpha/torrent-stack/downloads:/downloads - ${FILE_PATH}/torrent-stack/downloads:/downloads
- /media/alpha/torrent-stack/radarr/sma:/usr/local/sma/config - ${FILE_PATH}/torrent-stack/radarr/sma:/usr/local/sma/config
restart: unless-stopped restart: unless-stopped
network_mode: service:wireguard_torr network_mode: service:wireguard_torr
depends_on: depends_on:
@ -54,10 +54,10 @@ services:
- PGID=1000 - PGID=1000
- TZ=Europe/Copenhagen - TZ=Europe/Copenhagen
volumes: volumes:
- /media/alpha/torrent-stack/sonarr/config:/config - ./sonarr/config:/config
- /media/alpha/jellyfin/tvshows:/tv - ${FILE_PATH}/jellyfin/tvshows:/tv
- /media/alpha/torrent-stack/downloads:/downloads - ${FILE_PATH}/torrent-stack/downloads:/downloads
- /media/alpha/torrent-stack/sonarr/sma:/usr/local/sma/config - ${FILE_PATH}/torrent-stack/sonarr/sma:/usr/local/sma/config
restart: unless-stopped restart: unless-stopped
network_mode: service:wireguard_torr network_mode: service:wireguard_torr
depends_on: depends_on:
@ -73,8 +73,8 @@ services:
- PGID=1000 - PGID=1000
- TZ=Europe/Copenhagen - TZ=Europe/Copenhagen
volumes: volumes:
- /media/alpha/torrent-stack/jackett/config:/config - ./jackett/config:/config
- /media/alpha/torrent-stack/downloads:/downloads - ${FILE_PATH}/torrent-stack/downloads:/downloads
restart: unless-stopped restart: unless-stopped
network_mode: service:wireguard_torr network_mode: service:wireguard_torr
depends_on: depends_on:
@ -89,8 +89,8 @@ services:
- TZ=Europe/Copenhagen - TZ=Europe/Copenhagen
- DELUGE_LOGLEVEL=error - DELUGE_LOGLEVEL=error
volumes: volumes:
- /media/alpha/torrent-stack/deluge/config:/config - ./deluge/config:/config
- /media/alpha/torrent-stack/downloads:/downloads - ${FILE_PATH}/torrent-stack/downloads:/downloads
restart: unless-stopped restart: unless-stopped
network_mode: service:wireguard_torr network_mode: service:wireguard_torr
depends_on: depends_on:

1
start.sh Executable file
View File

@ -0,0 +1 @@
docker-compose --env-file .env up -d