Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Wanting help making a node.js docker [SOLVED]

Featured Replies

Hey All,

 

I use a stats board for bandwidth/other info for people trying to access my domain.  I've mangled together a V5 plugin of UpStatsBoard, but really want to move it to a docker.

 

https://github.com/lienma/UpsBoard

 

 

Any pointers or starting point or anyone who wants to make one?

  • Author

 

Okay needo... need a bit of help here

 

FROM phusion/baseimage:0.9.11
MAINTAINER smdion <[email protected]>
ENV DEBIAN_FRONTEND noninteractive

# Set correct environment variables
ENV HOME /root

# Use baseimage-docker's init system
CMD ["/sbin/my_init"]

# Fix a Debianism of the nobody's uid being 65534
RUN usermod -u 99 nobody
RUN usermod -g 100 nobody

RUN add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty universe multiverse"
RUN add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe multiverse"
RUN apt-get update -q

# Install Dependencies
RUN apt-get install -qy vnstat npm unrar wget

# Install UpStatsBoard v0.2.1
RUN wget -P /tmp/ https://github.com/lienma/UpsBoard/archive/0.2.1.tar.gz
RUN tar -C /opt/ -xvf /tmp/0.2.1.tar.gz
RUN cd /opt/UpsBoard-0.2.1 && npm install
ADD . /opt/UpsBoard-0.2.1
RUN chown nobody:users /opt/UpsBoard-0.2.1

EXPOSE 8024

CMD ["nodejs", "/opt/UpsBoard-0.2.1/app.js"]

 

I need to be able to edit (and other users) config.js which is pulled down from git.  How do I get access to that file from like /mnt/cache/appdata on unRAID?

  • Author

It looks like there is no way to tell node.js that the config file is in a different directory.  Would the easiest way to do this be to download the UpStatsBoard files directly to the cache drive then mount that location in the docker container?

 

EDIT: found a way from looking at the plexwatch docker. Just needed "RUN ln -s /config/config.js /opt/UpsBoard-0.2.1/config.js"

 

Still a work in process... need to get VNSTAT working with cron.

 

https://registry.hub.docker.com/u/smdion/docker-upstatsboard/

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.