improved dev testing suite

- adjusted compose file to store config data
- ignoring configs and data for version history
- adjusted setup script to make second instance the dev instance
This commit is contained in:
santiagosayshey
2024-05-11 03:25:11 +09:30
parent edd02f87c4
commit a7329fb1ef
4 changed files with 36 additions and 45 deletions

5
.gitignore vendored
View File

@@ -161,4 +161,7 @@ cython_debug/
config.yml
exports/
exports/
config/
data/

View File

@@ -1,42 +0,0 @@
version: "3.3"
x-common-settings: &common-settings
environment:
PUID: 0 # user id, change as necessary
PGID: 0 # group id, change as necessary
TZ: Europe/London # timezone, change as necessary
restart: unless-stopped
services:
radarr:
<<: *common-settings
image: linuxserver/radarr
container_name: radarr
ports:
- "7887:7878" # change the left value to the desired host port for Radarr
volumes:
- radarr_movies:/movies
radarr2:
<<: *common-settings
image: linuxserver/radarr
container_name: radarr2
ports:
- "7888:7878" # change the left value to the desired host port for Radarr
sonarr:
<<: *common-settings
image: linuxserver/sonarr
container_name: sonarr
ports:
- "8998:8989" # change the left value to the desired host port for Sonarr
sonarr2:
<<: *common-settings
image: linuxserver/sonarr
container_name: sonarr2
ports:
- "8999:8989" # change the left value to the desired host port for Sonarr
volumes:
radarr_movies: # Docker managed volume for movies

30
docker-compose.yml Normal file
View File

@@ -0,0 +1,30 @@
version: "3.8"
services:
radarr-dev:
image: lscr.io/linuxserver/radarr:latest
container_name: radarr-dev
environment:
- PUID=0
- PGID=0
- TZ=Etc/UTC
volumes:
- ./config/radarr-dev:/config
- ./data/dummy_radarr-dev:/downloads # Dummy path for downloads
ports:
- "7887:7878" # Unique port for Radarr development instance
restart: unless-stopped
sonarr-dev:
image: lscr.io/linuxserver/sonarr:latest
container_name: sonarr-dev
environment:
- PUID=0
- PGID=0
- TZ=Etc/UTC
volumes:
- ./config/sonarr-dev:/config
- ./data/dummy_sonarr-dev:/downloads # Dummy path for downloads
ports:
- "8998:8989" # Unique port for Sonarr development instance
restart: unless-stopped

View File

@@ -4,14 +4,14 @@ instances:
- name: "Master"
base_url: "http://localhost:7878"
api_key: "API_KEY"
- name: "4k-radarr"
- name: "DEV"
base_url: "http://localhost:7887"
api_key: "API_KEY"
sonarr:
- name: "Master"
base_url: "http://localhost:8989"
api_key: "API_KEY"
- name: "4k-sonarr"
- name: "DEV"
base_url: "http://localhost:8998"
api_key: "API_KEY"
settings: