-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add auto generation of transmission configs after ENV files edition - fix /list_<number> commnd
- Loading branch information
Showing
25 changed files
with
136 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
FROM openjdk:20-ea-35-jdk-slim | ||
RUN apt-get update | ||
RUN apt-get install -f -y jq | ||
COPY torrent-*.jar /home/app/app.jar | ||
COPY ./src/main/resources/log_properties /home/app | ||
COPY ./src/main/resources/scripts /home/app | ||
COPY ./src/main/resources/config /home/app | ||
RUN chmod +X /home/app/*.sh | ||
RUN chmod 777 /home/app/*.sh && chmod +X /home/app/*.sh | ||
ENTRYPOINT ["sh", "/home/app/run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 0 additions & 49 deletions
49
config/examples/docker-compose/docker-compose-bot_debug.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
config/examples/docker-compose/docker-compose-torrent-low.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: '3.7' | ||
|
||
services: | ||
transmission_low: | ||
image: lscr.io/linuxserver/transmission:latest | ||
container_name: "transmission_low" | ||
environment: | ||
- PUID=1000 | ||
- PGID=1000 | ||
- TZ=Etc/UTC | ||
volumes: | ||
- ./workdir/config/transmission_low:/config | ||
- ./workdir/mediadata_hdd/low_quality:/downloads/complete | ||
- ./workdir/config/files_from_telegram_low:/watch | ||
ports: | ||
- 9094:9091 | ||
- 51416:51413 | ||
- 51416:51413/udp | ||
restart: always | ||
networks: | ||
torrent_network_low: | ||
networks: | ||
torrent_network_low: | ||
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
[Unit] | ||
Description=Torrent start | ||
Requires=docker.service | ||
After=torrent-hdd-pull.service | ||
After=torrent.service | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
TimeoutStartSec=0 | ||
|
||
WorkingDirectory=/home/dima/media | ||
|
||
ExecStartPre=/usr/bin/docker-compose -f docker-compose-torrent-hdd.yml down | ||
ExecStart=/usr/bin/docker-compose -f docker-compose-torrent-hdd.yml up | ||
ExecStop=/usr/bin/docker-compose -f docker-compose-torrent-hdd.yml down | ||
TimeoutStartSec=0 | ||
|
||
[Install] | ||
WantedBy=default.target |
14 changes: 14 additions & 0 deletions
14
config/examples/etc/systemd/services/torrent-low-down.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[Unit] | ||
Description=Torent client Service | ||
Requires=docker.service | ||
After=bot.service | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
WorkingDirectory=/home/dima/media | ||
ExecStart=/usr/bin/docker-compose -f docker-compose-torrent-low.yml down | ||
TimeoutStartSec=0 | ||
|
||
[Install] | ||
WantedBy=default.target |
14 changes: 14 additions & 0 deletions
14
config/examples/etc/systemd/services/torrent-low-pull.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[Unit] | ||
Description=Torrent update | ||
Requires=docker.service | ||
After=torrent-low-down.service | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
WorkingDirectory=/home/dima/media | ||
ExecStart=/usr/bin/docker-compose -f docker-compose-torrent-low.yml pull | ||
TimeoutStartSec=0 | ||
|
||
[Install] | ||
WantedBy=default.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[Unit] | ||
Description=Low Torrent start | ||
Requires=docker.service | ||
After=torrent.service | ||
|
||
[Service] | ||
Type=oneshot | ||
TimeoutStartSec=0 | ||
|
||
WorkingDirectory=/home/dima/media | ||
|
||
ExecStartPre=/usr/bin/docker-compose -f docker-compose-torrent-low.yml down | ||
ExecStart=/usr/bin/docker-compose -f docker-compose-torrent-low.yml up | ||
|
||
[Install] | ||
WantedBy=default.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
[Unit] | ||
Description=Torrent start | ||
Requires=docker.service | ||
After=torrent-pull.service | ||
After=bot.service | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
WorkingDirectory=/home/dima/media | ||
ExecStart=/usr/bin/docker-compose -f docker-compose-torrent.yml up | ||
ExecStop=/usr/bin/docker-compose -f docker-compose-torrent.yml down | ||
TimeoutStartSec=0 | ||
|
||
WorkingDirectory=/home/dima/media | ||
|
||
ExecStartPre=/usr/bin/docker-compose -f docker-compose-torrent.yml down | ||
ExecStart=/usr/bin/docker-compose -f docker-compose-torrent.yml pull | ||
ExecStartPost=/usr/bin/docker-compose -f docker-compose-torrent.yml up | ||
|
||
[Install] | ||
WantedBy=default.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.