this post was submitted on 19 Oct 2023
1 points (100.0% liked)

Self-Hosted Main

511 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

I've gone through and setup a Homarr dashboard with a number of customizations. I exited the edit mode before leaving. When I start up the container is comes up with all the original defaults. I don't live in Paris for example and all my custom docker container icons are no longer there.

Any thoughts?

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 year ago (1 children)

Any thoughts?

How long is a jiffy?

But also, you probably didnt set up your Docker container properly and it doesnt save persistent data. By nature containers are ephemeral, meaning you stop them and they are gone. If you want to keep specific data you need to save that on the Docker host.

Projects like Homarr mention which paths inside the container image should be mapped to the host in order to save those things like settings.

You simply need to follow that.

Without any additional info thats all.

For the future, "it doesnt work" is not great, try to provide exact details of your setup, what youre doing and what the outcome is (errors messages, logs, etc). That saves a lot of time for people trying to help you, but also for yourself.

And fyi this here is not a techsupport subreddit.

For specific questions about Docker issues i would suggest /r/Docker as example, and for Homarr itself the ideal place is their Github page.

[–] [email protected] 1 points 1 year ago (1 children)

Here is the docker-compose.yml file I used to set it up. In all my other container docker-compose.yml file persistent storage is contained in it:

docker-compose.yml
version: '3'
#---------------------------------------------------------------------#
# Homarr - A simple, yet powerful dashboard for your server. #
#---------------------------------------------------------------------#
services:
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
restart: unless-stopped
volumes:
- ./homarr/configs:/app/data/configs
- ./homarr/icons:/app/public/icons
ports:
- '7575:7575'

So when I see /app/data/configs I assumed that was where the configuration changes are stored.

Does your docker-compose file differ?

Thanks for the feedback.

Glenn...

[–] [email protected] 1 points 1 year ago
volumes:
  - ./homarr/configs:/app/data/configs
  - ./homarr/icons:/app/public/icons

After checking the Homarr documentation, this looks correct to me.

If your settings still disappeared after a container restart it could (imo) be two things:

  • your data got corrupted on the host for a variety of reasons

  • its a bug in Homarr or Docker

So once again:

For specific questions about Docker issues i would suggest /r/Docker as example, and for Homarr itself the ideal place is their Github page.

[–] [email protected] 1 points 1 year ago

Permissions issue? Possibly Homarr cannot write to the configs to the file? Have you checked the container logs?