dashy template
vishalkadam47
FREEOP

a year 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

98 Replies

vishalkadam47
FREEOP

a year ago

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


vishalkadam47
FREEOP

a year ago

it needs conf.yml file to store everything


billydotws
FREE

a year 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
FREEOP

a year ago

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


billydotws
FREE

a year ago

ARG GIST_LINK

then curl the config in from the gist link


billydotws
FREE

a year ago

if you want it to be dynamic


vishalkadam47
FREEOP

a year ago

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


billydotws
FREE

a year ago

The config in github solves this for personal use


billydotws
FREE

a year ago

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


billydotws
FREE

a year 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"]
```


billydotws
FREE

a year ago

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


billydotws
FREE

a year ago

or do you mean allowing for editing via UI?


vishalkadam47
FREEOP

a year 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


billydotws
FREE

a year ago

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


vishalkadam47
FREEOP

a year ago

yes, it need a file mount


brody
EMPLOYEE

a year ago

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


billydotws
FREE

a year ago

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


brody
EMPLOYEE

a year ago

setting environment variables is non-dev friendly


vishalkadam47
FREEOP

a year ago

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


billydotws
FREE

a year 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


brody
EMPLOYEE

a year ago

do these users need to change the config?


vishalkadam47
FREEOP

a year ago

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

1338303736489050000
1338303736736518100


brody
EMPLOYEE

a year ago

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


vishalkadam47
FREEOP

a year ago

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


billydotws
FREE

a year ago

nowhere


billydotws
FREE

a year ago

these containers don't persist unless you add a volume


billydotws
FREE

a year ago

which railway supports


brody
EMPLOYEE

a year ago

then you have been asking the wrong questions this entire time


brody
EMPLOYEE

a year ago

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


vishalkadam47
FREEOP

a year 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.


billydotws
FREE

a year ago

.


billydotws
FREE

a year ago

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


vishalkadam47
FREEOP

a year ago

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


billydotws
FREE

a year ago

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


vishalkadam47
FREEOP

a year ago

ok i'll try and update if that works


vishalkadam47
FREEOP

a year ago

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


billydotws
FREE

a year ago

seems like a program issue(?)


billydotws
FREE

a year ago

kinda hard without more detailed error message


brody
EMPLOYEE

a year ago

first off, your mount point is wrong


brody
EMPLOYEE

a year ago

^


brody
EMPLOYEE

a year ago

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

1338310089353855000


vishalkadam47
FREEOP

a year 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


billydotws
FREE

a year ago

files are created in directories


vishalkadam47
FREEOP

a year ago

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


billydotws
FREE

a year ago

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


brody
EMPLOYEE

a year ago

what docs are you following?

1338310695476793300


billydotws
FREE

a year ago

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


billydotws
FREE

a year ago

1338311149099286500


billydotws
FREE

a year ago

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


vishalkadam47
FREEOP

a year ago

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

1338311341471174700


brody
EMPLOYEE

a year 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
FREEOP

a year 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
FREEOP

a year 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


brody
EMPLOYEE

a year ago

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


brody
EMPLOYEE

a year ago

no one is laughing at you


vishalkadam47
FREEOP

a year ago

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


brody
EMPLOYEE

a year ago

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


vishalkadam47
FREEOP

a year 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


brody
EMPLOYEE

a year ago

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


vishalkadam47
FREEOP

a year 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


brody
EMPLOYEE

a year ago

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


vishalkadam47
FREEOP

a year 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


brody
EMPLOYEE

a year ago

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


dev
MODERATOR

a year ago

this is definitely a problem yea


dev
MODERATOR

a year ago

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


dev
MODERATOR

a year 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


dev
MODERATOR

a year ago

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

1338416722759385000


dev
MODERATOR

a year ago

dashy doesn't populate the volume itself


dev
MODERATOR

a year 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


brody
EMPLOYEE

a year 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


billydotws
FREE

a year ago

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


brody
EMPLOYEE

a year ago

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


dev
MODERATOR

a year ago

😔 that's unfortunate


brody
EMPLOYEE

a year ago

monkey patch it is!


dev
MODERATOR

a year 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


brody
EMPLOYEE

a year ago

sounds good, thank you!


dev
MODERATOR

a year 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


dev
MODERATOR

a year ago

@Vishal I updated the template, you're welcome to redownload the template and it should work fine 🎉


brody
EMPLOYEE

a year ago

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


dev
MODERATOR

a year ago

yessir


brody
EMPLOYEE

a year ago

pog


vishalkadam47
FREEOP

a year 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.

brody
EMPLOYEE

a year ago

^


vishalkadam47
FREEOP

a year ago

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


dev
MODERATOR

a year ago

exactly


vishalkadam47
FREEOP

a year 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


brody
EMPLOYEE

a year ago

every month


vishalkadam47
FREEOP

a year ago

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


brody
EMPLOYEE

a year ago

then you will not be able to deploy dashy unfortunately


vishalkadam47
FREEOP

a year 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


dev
MODERATOR

a year ago

makes sense


brody
EMPLOYEE

a year ago

open a new help thread for it then!


vishalkadam47
FREEOP

a year 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


brody
EMPLOYEE

a year ago

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


brody
EMPLOYEE

a year ago

very poor practice imo


vishalkadam47
FREEOP

a year ago

but still thanks for the idea using env variable


brody
EMPLOYEE

a year ago

little bit more complex than "using an env variable"


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody 12 months ago


Loading...