Skip to content

Commit

Permalink
add HDD and add smb
Browse files Browse the repository at this point in the history
  • Loading branch information
galushko committed Feb 8, 2024
1 parent ae0376d commit 7056820
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 6 deletions.
3 changes: 2 additions & 1 deletion config/examples/docker-compose/docker-compose-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ services:
- ./workdir/config/transmission:/home/app/transmission_config
- ./workdir/config/transmission_hdd:/home/app/transmission_config_hdd
- ./workdir/config/logs:/home/app/logs
network_mode: host
networks:
bot_network_local:
bot:
image: halushko/cinema-bot:alpha
env_file:
Expand Down
5 changes: 3 additions & 2 deletions config/examples/docker-compose/docker-compose-media.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ services:
- VERSION=docker
volumes:
- ./workdir/config/plex/config:/config
- ./workdir/mediadata:/movies
# - ./workdir/mediadata_hdd:/movies/hdd
- ./workdir/mediadata:/movies/1
- ./workdir/mediadata_hdd/mediadata:/movies/2
- ./workdir/mediadata_morhun:/movies/3
restart: unless-stopped
network_mode: host
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- TZ=Etc/UTC
volumes:
- ./workdir/config/transmission_hdd:/config
- ./workdir/mediadata/hdd/mediadata:/downloads/complete
- ./workdir/mediadata_hdd/mediadata:/downloads/complete
- ./workdir/config/files_from_telegram_hdd:/watch
ports:
- 9092:9091
Expand Down
5 changes: 4 additions & 1 deletion config/examples/etc/systemd/services/create_services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ systemctl stop torrent-hdd.service
systemctl stop torrent-hdd-down.service
systemctl stop torrent-hdd-pull.service
systemctl stop mount-hdd.service
systemctl stop mount-morhun.service

systemctl disable bot.service
systemctl disable bot-debug-down.service
Expand All @@ -35,6 +36,7 @@ systemctl disable torrent-hdd.service
systemctl disable torrent-hdd-down.service
systemctl disable torrent-hdd-pull.service
systemctl disable mount-hdd.service
systemctl disable mount-morhun.service

cp -f *.service /etc/systemd/system

Expand All @@ -54,4 +56,5 @@ systemctl enable torrent-pull.service
systemctl enable torrent-hdd.service
systemctl enable torrent-hdd-down.service
systemctl enable torrent-hdd-pull.service
systemctl enable mount-hdd.service
systemctl enable mount-hdd.service
systemctl enable mount-morhun.service
2 changes: 1 addition & 1 deletion config/examples/etc/systemd/services/mount-hdd.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ After=docker.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=mount -t ntfs /dev/sdb1 /home/dima/media/workdir/mediadata/hdd/
ExecStart=mount -t ntfs /dev/sdb1 /home/dima/media/workdir/mediadata_hdd/
#ExecStop=umount /dev/sdb1
TimeoutStartSec=0

Expand Down
15 changes: 15 additions & 0 deletions config/examples/etc/systemd/services/mount-smb.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description=Mount HDD disc
Requires=docker.service
After=docker.service

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=mount.cifs //skynetrouter.asuscomm.com/Films /home/dima/media/workdir/mediadata_morhun -o username=Halushko,password=ObolonSvitle1,port=5001

#ExecStop=umount /dev/sdb1
TimeoutStartSec=0

[Install]
WantedBy=default.target

0 comments on commit 7056820

Please sign in to comment.