Comments (9)
Something else to consider is on initial start to create a default configuration file in the mapped folder.
from homer.
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.
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.
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.
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.
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.
@Aimsucks Yeah that's definitely the plan, I'm gonna push that asap.
from homer.
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.
Hi there!
This #83 should simplify the docker setup. Any feedback welcomed!
from homer.
Related Issues (20)
- Include package.json in release zip
- Add ability to route relative to the current URL / browser location API
- Netlify Deploy Preview not working for incoming PRs
- Optional message HOT 1
- How to add an IP address as URL?
- Update docker HOT 4
- custom services HOT 1
- Kubernetes Operator HOT 4
- 431 Request Header Fields Too Large
- Custom service for Glances integration
- Subject: Feature Request: Authentication Integration with Casdoor for Single Sign-On (SSO)
- New Service Config Tool
- docker image does not recognise timezone appropriately
- Incorrect example for background-image in example config.yml file
- Clarify docs for config.stylesheet. There's strange behavior when given a string
- How to fix ping CORS issue with Docker? HOT 1
- IIS Configuration
- Define a name on the link to return to the home page when the logo is disabled
- qbittorrent custom service fetch fails with 403 unless logged in
- HTTP API Mapping for Links/Cards
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homer.