dashy template

vishalkadam47
FREE

5 months ago

need help with this template https://help.railway.com/templates/dashy-c5c1f947#5psh

I see that the conf.yml is not been added

check this link they say

If you're using Docker, this file can be passed in as a volume. Changes can either be made directly to this file, or done through the UI.

And i don't see any option to pass the file as volume

Solved

0 Replies

vishalkadam47
FREE

5 months ago

as of now in the template its just the dashy app config gets reset each time you refresh


vishalkadam47
FREE

5 months ago

it needs conf.yml file to store everything


5 months ago

You'll need to create a github repository and create your own dockerfile to set the configuration.

Create a file called Dockerfile

```FROM lissy93/dashy:latest as runtime

Copy custom config file into the container

COPY ./conf.yml ./user-data/conf.yml

Expose the port Dashy runs on

EXPOSE 8080

Start Dashy

CMD ["npm", "run", "start"]
```

May need some changes, this is what I gathered from a quick doc read

And add your configuration file within conf.yml in the same repository


vishalkadam47
FREE

5 months ago

building my own dockerfile i know how to but i'm looking for a way that can be used for other users too


5 months ago

ARG GIST_LINK

then curl the config in from the gist link


5 months ago

if you want it to be dynamic


vishalkadam47
FREE

5 months ago

there are few more templates that i want to add which relates similar to dashy where config.yml is required


5 months ago

The config in github solves this for personal use


5 months ago

if you want to distribute this as a template, allowing for ingestion of a gist via railway env var is the best way


5 months ago

```FROM lissy93/dashy:latest as runtime

Accept GIST_URL as an ARG and set it as an ENV variable

ARG GIST_URL

Fetch the custom config file from GIST_URL if provided

RUN if [ -n "$GISTURL" ]; then \ curl -sSL "$GISTURL" -o ./config.yml; \
fi

Expose the port Dashy runs on

EXPOSE 8080

Start Dashy

CMD ["npm", "run", "start"]
```


5 months ago

assuming the image has curl, otherwise apt-get install curl


5 months ago

or do you mean allowing for editing via UI?


vishalkadam47
FREE

5 months ago

not looking for personal use i want to share with some other users who doesn't understand the way of configuring backend, lets say non-tech or non-developers, a normal user with no technical knowledge, so that they can just deploy using template and get access to the app then edit from the UI.
hope you understand now


5 months ago

okay, yeah, so does Dashy save this to a file location?


vishalkadam47
FREE

5 months ago

yes, it need a file mount


5 months ago

taking a step back here, whatever you want to configure in config.yml, can it not be done via environment variables?


5 months ago

He wants it to be non-dev friendly (using UI)


5 months ago

setting environment variables is non-dev friendly


vishalkadam47
FREE

5 months ago

it can be done if its for me as i understand tech stuff but i need it for non-dev users


5 months ago

Right click your service, add a volume, and enter Dashy's file path (/app/user-data i assume).

If dashy reads/writes here, should persist.

unsure if this is available on trial plans

https://i.imgur.com/6iB0HcR.png


5 months ago

do these users need to change the config?


vishalkadam47
FREE

5 months ago

dashy provides a UI way of config user don't have to go into the file

1338303736489050000
1338303736736518100


5 months ago

so then why do you want to touch the config file?


vishalkadam47
FREE

5 months ago

if we dont attach a file as volume then from UI where does the config gets saved buddy that's my question


5 months ago

nowhere


5 months ago

these containers don't persist unless you add a volume


5 months ago

which railway supports


5 months ago

then you have been asking the wrong questions this entire time


5 months ago

simply ask fragly to update his template with a volume mounted to /app/user-data


vishalkadam47
FREE

5 months ago

that's why i have shared a link with
check this link they say

If you're using Docker, this file can be passed in as a volume. Changes can either be made directly to this file, or done through the UI.


5 months ago

.


5 months ago

this can be done while you wait, @Fragly can update their template too


vishalkadam47
FREE

5 months ago

let me try manually by attaching but will that take the file or its just a folder


5 months ago

it'll store anything the application writes to that volume/subfolders within that


vishalkadam47
FREE

5 months ago

ok i'll try and update if that works


vishalkadam47
FREE

5 months ago

https://pastebin.com/6C6Jj0RF
Project ID
8388299f-4bde-46f2-be04-035ce30604c1


5 months ago

seems like a program issue(?)


5 months ago

kinda hard without more detailed error message


5 months ago

first off, your mount point is wrong


5 months ago

^


5 months ago

secondly, your are running out of memory, you will need to upgrade to hobby

1338310089353855000


vishalkadam47
FREE

5 months ago

i was following the dashy docs, i'll change as you say /app/user-data
but this is only volume dir mount right file mount will not work in railway


5 months ago

files are created in directories


vishalkadam47
FREE

5 months ago

dashy doesnt come with any default file we need to attach a file


5 months ago

you need to create a default config file if that's the case.


5 months ago

what docs are you following?

1338310695476793300


5 months ago

the docs do say conflicting things, this seems a bit messy tbf


5 months ago

1338311149099286500


5 months ago

i assume they just assume you're in the app dir


vishalkadam47
FREE

5 months ago

not funny, I'm just trying figure out to help other users so that they can use railway too

1338311341471174700


5 months ago

to be fair, its fragly's template, its his job to fix it if anything is wrong, and im sure he would have no problem doing so, when he is available


vishalkadam47
FREE

5 months ago

I'm not asking for immediately too, if you see this ticket opened long back still fragly is not available that's why i'm trying to figure it out


vishalkadam47
FREE

5 months ago

i'm here for help but you are laughing at my efforts, I don't know its fragly or some one else i'm here on railway. and I'm an artist not a developer professionally, but still I'm trying to make my way into tech stuff


5 months ago

a simple bump works! he may have missed the message is all


5 months ago

no one is laughing at you


vishalkadam47
FREE

5 months ago

yes that is fine, I didnt even ask for fragly to check


5 months ago

billy has tagged in fragly, so lets step back and leave this to fragly now


vishalkadam47
FREE

5 months ago

great now you edit your message i did copy you message where you said

what docs are you follwing lol
what did you mean by LOL

but seriously buddy did you just edit 🤪 now its funny cool I'm ok now


5 months ago

not laughing at you, but i realize it could be interpreted that way, my apologies


vishalkadam47
FREE

5 months ago

maybe you might not thought in that way but you reply did hurt me for a second. now its fine don't have to apologies


5 months ago

lol is a common use in english texting, it does not mean you are laughing at someone


vishalkadam47
FREE

5 months ago

stuck at -
Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/64f3733f-466a-4879-977f-7139e8f11022/vol_lbk2ji203bhrmfoc

this time i used /app/user-data/conf.yml


5 months ago

you cannot include the file in the path, again, let's leave this to Fragly


5 months ago

this is definitely a problem yea


5 months ago

my bad, I'll get a volume on the template


5 months ago

although for passing the conf.yaml you'll need to upload the file yourself through filebrowser, I don't think I can pass existing files in volumes in a template


5 months ago

ah I guess that's why I never added a volume 🤣

1338416722759385000


5 months ago

dashy doesn't populate the volume itself


5 months ago

i guess I could create a predeploy command or alter the existing deploy command to manually add a conf.yaml in the volume if there isn't any šŸ¤” that's a fat monkey-patch though and the command is going to look properly hideous


5 months ago

pre-deploy command doesn't have volume access, so it would have to be done in the start command, it is a monkey patch for poorly designed software, but there's not much you can do if you want to template to work properly


5 months ago

at this point I'd just pr it on the repo to default-add a config lol


5 months ago

last update was 5 months ago, the project seems dead?


5 months ago

šŸ˜” that's unfortunate


5 months ago

monkey patch it is!


5 months ago

true, or I might fork it.. <:hmMm:1106096377211138098>
I'll get on this later though just got back from uni and I'm super tired


5 months ago

sounds good, thank you!


5 months ago

I ended up going with a custom start command
I made it so it'll download the config from a specified service variable which by default points to Dashy's default config in GitHub

this way you can use your own premade config just by uploading it somewhere and pasting the raw-text URL into the service variable before deploying
or use the official default dashy config by not changing the variable


5 months ago

@Vishal I updated the template, you're welcome to redownload the template and it should work fine šŸŽ‰


5 months ago

and you've modified the config and redeployed without it reverting to default?


5 months ago

yessir


5 months ago

pog


vishalkadam47
FREE

5 months ago

i just deployed but

*******************************************************************************************

Welcome to Dashy! šŸš€

Your new dashboard is now up and running with Docker

*******************************************************************************************




Using Dashy V-3.1.1. Update Check Complete

āœ… Dashy is Up-to-Date



Browserslist: caniuse-lite is outdated. Please run:

  npx update-browserslist-db@latest

  Why you should do it regularly: https://github.com/browserslist/update-db#readme



-  Building for production...

 WARN  A new version of sass-loader is available. Please upgrade for best experience.

error Command failed with signal "SIGKILL".

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

ERROR: "build" exited with 1.

error Command failed with exit code 1.

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

5 months ago

^


vishalkadam47
FREE

5 months ago

so the conf.yml will be downloaded to the volume path right


5 months ago

exactly


vishalkadam47
FREE

5 months ago

ok, i always had this question ? if i upgrade to hobby plan do i need to pay every-month or only when the credits are finished


5 months ago

every month


vishalkadam47
FREE

5 months ago

ohh then, i use railway for very small app adding 5$ every-month is not useful


5 months ago

then you will not be able to deploy dashy unfortunately


vishalkadam47
FREE

5 months ago

i was asking dashy because to understand the workflow of conf.yml this is similar to the another app which i wanted to add a template. and dashy was required for my friend


5 months ago

makes sense


5 months ago

open a new help thread for it then!


vishalkadam47
FREE

5 months ago

i used dashy on other platforms like coolify where they have an option for volume file mount (Bind mount) so i was expecting the same here at railway


5 months ago

on railway, volume mounts are volume mounts, we do not abuse them to mount a file


5 months ago

very poor practice imo


vishalkadam47
FREE

5 months ago

but still thanks for the idea using env variable


5 months ago

little bit more complex than "using an env variable"


5 months ago

!s


Status changed to Solved brody • 5 months ago


dashy template - Railway Help Station