Code Monkey home page Code Monkey logo

Comments (4)

debuggerboy avatar debuggerboy commented on May 17, 2024 2

Raju,

You need to have a fully working nginx install on your host.
If yes, then your "/etc/nginx" should have the "nginx.conf" file and "conf.d" directory.

Then when you launch "nginx-ui" docker container, you need to add your local /etc/nginx as a volume inside the "nginx-ui" docker container mapped to /etc/nginx such that the Python Flask application can read it's configuration and display the website.

  1. Make sure that you local nginx is setup properly and your /etc/nginx directory is populated.
  2. When you launch nginx-ui container mount your local nginx config directory into the container. use "-v /etc/nginx:/etc/nginx"

Other option

Launch 2 containers "nginx-ui" and "nginx" using "docker-compose.yml" and the use "/etc/nginx" as a shared volume on both "nginx-ui" and "nginx".

from nginx-ui.

Raju avatar Raju commented on May 17, 2024 1

now i got it, as i'm new to docker so a bit confusing with all those options and stuffs but now i can confirm its working on localhost:7777

I'll go head and close the issue.

from nginx-ui.

LucaNerlich avatar LucaNerlich commented on May 17, 2024

What @debuggerboy mentioned, using the correct volumemapping works:

docker run -d --restart=always --name nginxui -v /etc/nginx:/etc/nginx -p 7777:8080 schenkd/nginx-ui:latest

The docs are "wrong".

from nginx-ui.

amitsax avatar amitsax commented on May 17, 2024

Adding to this issue - When used with LinuxServer.io image of swag.

Map the swag/nginx directory to /etc/nginx of docker image of nginx-ui.
you will get the same error reported htere, because conf.d directory is not available.
Workaround:
create a symbolic link conf.d directory linked to proxy-confs directory. that
in swag/nginx directory execute: ln -s proxy-confs conf.d

restart container for nginx-ui. now this error would be resolved.

from nginx-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.