shelly-admin icon indicating copy to clipboard operation
shelly-admin copied to clipboard

Feature Request: Make Shelly Admin available as Docker image

Open koldogut opened this issue 3 years ago • 4 comments

Nice work @maxlyth !! I've tried to install one of the docker images you have published for supervisor but no luck. It'll be awesome to make it also available for those using HA Core installed in docker.

koldogut avatar Dec 23 '21 14:12 koldogut

I use ShellyAdmin with Docker. Since the Shelly Devices are discovered by upd broadcast, the container needs to run on the host network. (docker run --network host ...)

You could the use this Dockerfile:

FROM node

RUN apt-get update && apt-get install -y \
    curl \
    && rm -rf /var/lib/apt/lists/*

# Create app directory
WORKDIR /app


COPY . .

# update each dependency in package.json to the latest version
RUN npm install -g npm-check-updates \
    ncu -u \
    npm install

COPY . /app
EXPOSE 43812

CMD [ "node", "./bin/www" ]

Or just build from my fork: $ docker build https://github.com/JulianHi/shelly-admin.git $ docker run --network host --name shelly-admin julianhi/shelly-admin:latest

^^something like this should work. ( I use portainer.io though... so i didn't tested if the docker run part is actually working like this)

JulianHi avatar Feb 18 '22 09:02 JulianHi

I run docker on a Synology NAS and unsure how to do any of this.

This looks cool but the complete lack of instructions on how to use it is a massive turn down

jonferreira avatar Apr 19 '22 11:04 jonferreira

@JulianHi Can you please share how to deploy (A-Z, nooby here...) on portainer.io please?

adizag avatar Jul 18 '22 11:07 adizag

And will be available definitions in yaml to docker-compose.yml?

S474N avatar Aug 14 '23 14:08 S474N