Giter Club home page Giter Club logo

Comments (9)

Aimsucks avatar Aimsucks commented on May 22, 2024 1

Something else to consider is on initial start to create a default configuration file in the mapped folder.

from homer.

JamiePhonic avatar JamiePhonic commented on May 22, 2024

Try this:

first, create a homer folder inside your /container/ folder and place the files inside it:

/container/homer/assets/
/container/homer/config.yml

then run:

chmod -R 774 /container/homer/
docker run -d --name='homer' -p '8066:8080' -v '/container/homer/assets/':'/www/assets':'rw' -v '/container/homer/config.yml':'/www/config.yml':'rw' 'b4bz/homer:latest' 

The --name parameter isnt required, i just like to properly name my containers so i can identify multiple instances of the same container

from homer.

blasphemite avatar blasphemite commented on May 22, 2024

I actually do have the homer files in it's own folder. The directory is more like /docker/homer/assets/ etc.

chown and chmod on homer folder, then running:

docker run -d --name='homer' -p '8066:8080' -v '/docker/homer/assets/':'/www/assets':'rw' -v '/docker/homer/config.yml':'/www/config.yml':'rw' 'b4bz/homer:latest'

and config.yml is still created as a directory.

from homer.

Aimsucks avatar Aimsucks commented on May 22, 2024

Yes, he's saying you need to create config.yml inside /docker/homer/ because volumes are meant to be mapped to folders and not files. It will work, however, if you try to mount an existing file to the container.

from homer.

JamiePhonic avatar JamiePhonic commented on May 22, 2024

Yes, if mapping a file, the file MUST exist before starting the container, otherwise docker will usually assume It's a folder.
Also make sure the file has the correct permissions so docker can access it.

Your're not the only one to experience this issue, for example, in #50, the OP was having the same issue running on a synology NAS. Creating the config.yml file before starting the container seemed to work.

On the other hand, I'm running on Unraid and never ran In to this issue at all.

I think part of it may be down to how docker Is implemented/managed within a perticular OS, but thats just a theory.

from homer.

bastienwirtz avatar bastienwirtz commented on May 22, 2024

Hi there!

Yeah, it not ideal, I think in the future I'll move the config.yml in the assets folder (maybe also change the name of this folder), all editable / customizable files should be in the same place. I never considered it would run in docker at some point, so file organization could have been better 😅

I'll think about it, might be possible to get a clean file organization and run a little script to migrate old installations and avoid to break everyone's dashboard!

from homer.

bastienwirtz avatar bastienwirtz commented on May 22, 2024

@Aimsucks Yeah that's definitely the plan, I'm gonna push that asap.

from homer.

GlennToms avatar GlennToms commented on May 22, 2024

I mount /www folder and every thing get copied in on first startup and then your good to go. This is how I've all ways used Homer.

Using this as the mount point address most of the concerned above and with merge #87 config is now created if missing.
Let me know if you still having issues with the newest version.

from homer.

bastienwirtz avatar bastienwirtz commented on May 22, 2024

Hi there!

This #83 should simplify the docker setup. Any feedback welcomed!

from homer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.