From 08ff527a05dd303f15781cc14b3eb0bc1908d9aa Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Tue, 25 May 2021 10:56:53 +0200 Subject: [PATCH] Add environment configuration file --- .env.sample | 1 + docker-compose.yml | 24 ++++++++++++------------ start.sh | 1 + 3 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 .env.sample create mode 100755 start.sh diff --git a/.env.sample b/.env.sample new file mode 100644 index 0000000..bbb3a07 --- /dev/null +++ b/.env.sample @@ -0,0 +1 @@ +FILE_PATH= diff --git a/docker-compose.yml b/docker-compose.yml index 1f630a1..e4ff033 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -36,10 +36,10 @@ services: - PGID=1000 - TZ=Europe/Copenhagen volumes: - - /media/alpha/torrent-stack/radarr/config:/config - - /media/alpha/jellyfin/movies:/movies - - /media/alpha/torrent-stack/downloads:/downloads - - /media/alpha/torrent-stack/radarr/sma:/usr/local/sma/config + - ./radarr/config:/config + - ${FILE_PATH}/jellyfin/movies:/movies + - ${FILE_PATH}/torrent-stack/downloads:/downloads + - ${FILE_PATH}/torrent-stack/radarr/sma:/usr/local/sma/config restart: unless-stopped network_mode: service:wireguard_torr depends_on: @@ -54,10 +54,10 @@ services: - PGID=1000 - TZ=Europe/Copenhagen volumes: - - /media/alpha/torrent-stack/sonarr/config:/config - - /media/alpha/jellyfin/tvshows:/tv - - /media/alpha/torrent-stack/downloads:/downloads - - /media/alpha/torrent-stack/sonarr/sma:/usr/local/sma/config + - ./sonarr/config:/config + - ${FILE_PATH}/jellyfin/tvshows:/tv + - ${FILE_PATH}/torrent-stack/downloads:/downloads + - ${FILE_PATH}/torrent-stack/sonarr/sma:/usr/local/sma/config restart: unless-stopped network_mode: service:wireguard_torr depends_on: @@ -73,8 +73,8 @@ services: - PGID=1000 - TZ=Europe/Copenhagen volumes: - - /media/alpha/torrent-stack/jackett/config:/config - - /media/alpha/torrent-stack/downloads:/downloads + - ./jackett/config:/config + - ${FILE_PATH}/torrent-stack/downloads:/downloads restart: unless-stopped network_mode: service:wireguard_torr depends_on: @@ -89,8 +89,8 @@ services: - TZ=Europe/Copenhagen - DELUGE_LOGLEVEL=error volumes: - - /media/alpha/torrent-stack/deluge/config:/config - - /media/alpha/torrent-stack/downloads:/downloads + - ./deluge/config:/config + - ${FILE_PATH}/torrent-stack/downloads:/downloads restart: unless-stopped network_mode: service:wireguard_torr depends_on: diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..7fb29d6 --- /dev/null +++ b/start.sh @@ -0,0 +1 @@ +docker-compose --env-file .env up -d