Lissy93 / dashy

🚀 A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
https://dashy.to
MIT License
18.07k stars 1.36k forks source link

[BUG] Can't Find Local Icons #1730

Closed wittywilla closed 3 weeks ago

wittywilla commented 3 weeks ago

Environment

Self-Hosted (Docker)

System

Ubuntu Server 24.04 - CasaOS Instance

Version

3.1.1

Describe the problem

I'm using a docker compose file to deploy a stack in portioner for Dashy

The docker compose file I have set up is as follows:

---
version: "3.8"
services:
  dashy:
    # To build from source, replace 'image: lissy93/dashy' with 'build: .'
    # build: .
    image: lissy93/dashy
    container_name: Dashy
    # Pass in your config file below, by specifying the path on your host machine
    volumes:
      - /DATA/AppData/Dashy/User-Data/item-icons:/app/user-data/item-icons
      - /DATA/AppData/Dashy/User-Data/conf.yml:/app/user-data/conf.yml
    ports:
      - 4000:8080
    # Set any environmental variables
    environment:
      - NODE_ENV=production
    # Specify your user ID and group ID. You can find this by running `id -u` and `id -g`
      - UID=1000
      - GID=1000
    # Specify restart policy
    restart: unless-stopped
    # Configure healthchecks
    healthcheck:
      test: ['CMD', 'node', '/app/services/healthcheck']
      interval: 1m30s
      timeout: 10s
      retries: 3
      start_period: 40s

I created this following the documentation. I'm having issues accessing the mounted icons folder within Dashy itself. Whenever I try to use either the syntax: icon: ytstudiored.svg or use /app/user-data/item-icons/ytstudiored.svg when trying to add a local icon, it still shows a broken icon image every single time.

I'm unsure what I'm doing wrong here, and I would like some help on this if possible!

Please let me know if you need anything else from me. I'm still fairly new to self-hosting and docker, so it could be something simple I overlooked.

Thanks in advance, --wittywilla

Additional info

dashy broken icon dashy local icon example dashy portainer

Please tick the boxes

wittywilla commented 3 weeks ago

figured out my mistake. I was following along the documentation for the .yml file and not the UI. If someone else is stuck, all they have to do is type in the file name, no need for the "icon: "