[BUG] conf.yml is a directory
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
- [X] You have explained the issue clearly, and included all relevant info
- [X] You are using a supported version of Dashy
- [X] You've checked that this issue hasn't already been raised
- [X] You've checked the docs and troubleshooting guide
- [X] You agree to the code of conduct
If you're enjoying Dashy, consider dropping us a ⭐
🤖 I'm a bot, and this message was automated
Oops, Found my issue
what was it though?
@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 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 👌