Linux & docker noob questions/review/suggestions.

  • Thread starter Thread starter Trex
  • Start date Start date
  • Replies Replies 32
  • Views Views 1,809

Trex

This is the way
Messages
649
Location
Haryana Gurgaon
ISP
BSNL
@_Dexter I have installed a homepage container and now wants to add jellyfin service. For that, I need to edit service.yaml file but I don't know the path of that. please help.
 
I am assuming you mean the compose file by service.yaml
You have used the Docker run command to run the first container. So there won't be any existing yaml file. You need to create one with both the services and then use that to run the containers
 
create a folder called 'docker_containers' in your home folder

in that create a folder called "jellyfin" and cd to it

and in that type in "nano docker-compose.yml"

paste the docker compose listed on this page


change the paths from " /path/to/library:/config" to " ./library:/config"

the path on the left is the path on your host, this is the part you need to change to wherever your files are. you can . for relative path.

then run it "docker compose up -d" or "docker-compose up -d"

wait for it and try opening the site on port 8096
 
@Trex Check if this path exist in your system '/home/me/homepage/config' (here "me" will be your username if you are not using root user).
If directory doesn't exist then create and redeploy homepage container.
If it already exist then you'll see three yml files there - services.yaml, settings.yaml, widgets.yaml
You'll have to edit them in order to configure homepage

here are my homepage config files

services.yaml
https://www.mediafire.com/file/wh8mrjnu272nkxl/services.yaml/file

settings.yaml
https://www.mediafire.com/file/xftvjgfhyqy2yst/settings.yaml/file

widgets.yaml
https://www.mediafire.com/file/m67g3exjan5qjsj/widgets.yaml/file
 
As @JB701 mentioned you can also use any other path just remember to use that path as volume while deploying container
 
@_Dexter thanks for providing files. That cleared most of my doubts. Btw which editor do you use to edit these files in terminal, vi, or anything else?
 
VS Code with Remote SSH and Remote Explorer extentions. I do use terminal with nano and WinSCP for file transfers but for editing files VS Code is best
 
Also If you have more than 8GB of RAM then either increase swap partition size or disable swap completely. It causes issue on Debian somehow
 
Back