Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] conf.yml is a directory #1130

Closed
5 tasks done
thecrazytech1 opened this issue Mar 3, 2023 · 5 comments
Closed
5 tasks done

[BUG] conf.yml is a directory #1130

thecrazytech1 opened this issue Mar 3, 2023 · 5 comments
Assignees
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working

Comments

@thecrazytech1
Copy link

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 thecrazytech1 added the 🐛 Bug [ISSUE] Ticket describing something that isn't working label Mar 3, 2023
@liss-bot
Copy link
Collaborator

liss-bot commented Mar 3, 2023

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

@thecrazytech1
Copy link
Author

Oops, Found my issue

@phaedonv
Copy link

what was it though?

@CrazyWolf13
Copy link
Collaborator

@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.

@phaedonv
Copy link

phaedonv commented Aug 19, 2024

@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 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working
Projects
None yet
Development

No branches or pull requests

5 participants