dashy icon indicating copy to clipboard operation
dashy copied to clipboard

[BUG] conf.yml is a directory

Open thecrazytech1 opened this issue 3 years ago • 5 comments

Environment

Self-Hosted (Docker)

System

No response

Version

No response

Describe the problem

When I tried to deploy Dashy via docker compose, it made the conf.yml into a directory my docker-compose.yml

---
version: "3.8"
services:
  dashy:
    image: lissy93/dashy
    container_name: Dashy
    volumes:
       - /mnt/1tb/dashy/:/app/public/
    ports:
      - 4000:80
    environment:
      - NODE_ENV=production
      - UID=1000
      - GID=1000
    restart: unless-stopped

    healthcheck:
      test: ['CMD', 'node', '/app/services/healthcheck']
      interval: 1m30s
      timeout: 10s
      retries: 3
      start_period: 40s

Additional info

No response

Please tick the boxes

thecrazytech1 avatar Mar 03 '23 22:03 thecrazytech1

If you're enjoying Dashy, consider dropping us a ⭐
🤖 I'm a bot, and this message was automated

liss-bot avatar Mar 03 '23 22:03 liss-bot

Oops, Found my issue

thecrazytech1 avatar Mar 03 '23 22:03 thecrazytech1

what was it though?

phaedonv avatar Aug 19 '24 16:08 phaedonv

@phaedonv Probably you need to first create the conf.yml file on the host and fill it with the default from the github repository or first deploy the container then edit it and add the bind mount.

Option 1 will work more reliable.

CrazyWolf13 avatar Aug 19 '24 20:08 CrazyWolf13

@phaedonv Probably you need to first create the conf.yml file on the host and fill it with the default from the github repository or first deploy the container then edit it and add the bind mount.

Option 1 will work more reliable.

Yeap, I also found the solution. 🙌 Actually, I was trying to pass one of my backup conf.ymls and I was following an older tutorial, so the part inside docker-compose.yml:

 volumes:
      - ./conf.yml:/app/public/conf.yml

needed to be changed to:

 volumes:
      - ./conf.yml:/app/user-data/conf.yml

It needed to be mounted inside the container's user-data folder! So after that everything worked like a charm 👌

phaedonv avatar Aug 19 '24 22:08 phaedonv