Skip to content

halushko/kino-cat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

home_cinema

To run the home cinema please use https://github.com/halushko/kino-cat/blob/master/docker-compose.yml. The images are located in https://hub.docker.com/repositories/halushko repositories

!! Do not forget to set BOT_TOKEN, BOT_NAME.

Open issues:

  1. There is aa bug with "network_mode: host" in Docker Desktop (Windows and MacOS), so that your media server will never be visible. The resolution is - run this project on Linux VM with Bridge adapter (do not use NAT)

HOWTO install (Linux)

  1. Update system:
sudo apt-get update
sudo apt-get -y -f upgrade
  1. Install Docker and docker-compose:
sudo apt-get -f -y install docker docker.io docker-compose
  1. Copy docker-compose.yml file to the server in the empty directory
  2. Run program:
sudo docker-compose up

or, if all services cant start in a 60 sec:

sudo -s
env COMPOSE_HTTP_TIMEOUT=60000 docker-compose up
  1. If you need, you can add to autorun
  • Create a new file named docker-compose.service in /etc/systemd/system/ directory:
sudo vi /etc/systemd/system/docker-compose.service
  • Add the following contents to the file:
[Unit]
Description=Docker Compose Application Service
Requires=docker.service
After=docker.service

[Service]
Type=oneshot
RemainAfterExit=yes
WorkingDirectory=/path/to/docker-compose/directory
ExecStart=/usr/local/bin/docker-compose up  --pull always
ExecStop=/usr/local/bin/docker-compose down
TimeoutStartSec=0

[Install]
WantedBy=default.target

Make sure to replace /path/to/docker-compose/directory with the path to your directory containing the docker-compose.yml file.

  • Save and close the file.
  • Reload the systemd daemon to pick up the new service file. Enable the service to start on boot and tart the service:
sudo systemctl daemon-reload
sudo systemctl enable docker-compose.service
sudo systemctl start docker-compose.service
  • Now, docker-compose.up will be executed automatically on startup. You can check the status of the service by running:
sudo systemctl status docker-compose.service

Add this text to /etc/fstab To automount the USB drive

UUID=<check by blkid command>   /folder/where/docker-compose/located      <ntfs or other>    defaults        0       0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published