Skip to content

Commit

Permalink
Add docker network
Browse files Browse the repository at this point in the history
  • Loading branch information
westsurname committed May 21, 2024
1 parent 0a10ec6 commit 9be9b82
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ REPAIR_RUN_INTERVAL="1d"
PYTHONUNBUFFERED=TRUE
PUID=
PGID=
UMASK=002
UMASK=002
DOCKER_NETWORK="docker_network_default"
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@
- `PUID`: Set this to the user ID that the service should run as.
- `PGID`: Set this to the group ID that the service should run as.
- `UMASK`: Set this to control the default file creation permissions.
- `DOCKER_NETWORK`: Set this to the name of the Docker network to be used by the services.
## Blackhole
### Setup
Expand Down
11 changes: 9 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ x-blackhole: &blackhole
env_file:
- .env
restart: unless-stopped
networks:
- ${DOCKER_NETWORK:-docker_network_default}

x-repair: &repair
build:
Expand All @@ -19,6 +21,8 @@ x-repair: &repair
env_file:
- .env
restart: unless-stopped
networks:
- ${DOCKER_NETWORK:-docker_network_default}

services:
blackhole:
Expand Down Expand Up @@ -50,10 +54,10 @@ services:
repair_service:
<<: *repair
container_name: repair_service
profiles: [repair, repair_all, all]
volumes:
- ${SONARR_ROOT_FOLDER}:${SONARR_ROOT_FOLDER}
- ${RADARR_ROOT_FOLDER}:${RADARR_ROOT_FOLDER}
profiles: [repair, repair_all, all]

repair_4k:
<<: *repair
Expand All @@ -63,10 +67,10 @@ services:
- SONARR_API_KEY=${SONARR_API_KEY_4K}
- RADARR_HOST=${RADARR_HOST_4K}
- RADARR_API_KEY=${RADARR_API_KEY_4K}
profiles: [repair_4k, repair_all, all]
volumes:
- ${SONARR_ROOT_FOLDER_4K}:${SONARR_ROOT_FOLDER}
- ${RADARR_ROOT_FOLDER_4K}:${RADARR_ROOT_FOLDER}
profiles: [repair_4k, repair_all, all]

watchlist:
build:
Expand Down Expand Up @@ -113,3 +117,6 @@ services:
restart: unless-stopped
profiles: [plex_request, all]

networks:
${DOCKER_NETWORK:-docker_network_default}:
external: true

0 comments on commit 9be9b82

Please sign in to comment.