Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Image #14

Open
benniblot opened this issue Sep 4, 2022 · 2 comments
Open

Docker Image #14

benniblot opened this issue Sep 4, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@benniblot
Copy link

Hey, had the idea for a apache docker image with hue-browser-controller inside it that exposed a port so you can access it.

@rpsteinbrueck
Copy link

rpsteinbrueck commented Nov 7, 2022

Hi,

I don't have an apache docker image for you but I have a nginx docker image instead.

If you just quickly want to simple setup you can execute the following line in the terminal (Note, change folder path.):
docker run -it --rm -d -p 8881:80 --name Hue-Browser-Controller -v /PATH/TO/FOLDER/Hue-Browser-Controller:/usr/share/nginx/html nginx

I also have a Dockerfile and a docker-compose.yaml
Place both files in a folder and just run docker-compose up -d when you are in the folder.
The nginx docker image is alpine and installs git and then downloads this repository to the default nginx folder /usr/share/nginx/html.

Dockerfile:

FROM nginx:alpine

RUN rm -rf /usr/share/nginx/html

RUN apk add git
RUN git clone https://github.com/JakobJFL/Hue-Browser-Controller /usr/share/nginx/html

EXPOSE 80

docker-compose.yaml:

# compose file for hue-browser-controller
version: '3'

networks:
  hue-browser-controllernetwork_compose:
    driver: bridge

services:
  hue-browser-controller:
    build: .
    restart: unless-stopped
    networks:
      hue-browser-controllernetwork_compose:
    ports:
    - "8881:80"

I hope this helps.

EDIT: You can reach the container over localhost:8881 or HOST_IP:8881

@benniblot
Copy link
Author

Thanks for the answer 🙂

@JakobJFL JakobJFL added the enhancement New feature or request label Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants