GithubHelp home page GithubHelp logo

Comments (19)

q20 avatar q20 commented on July 25, 2024 1

No problem. 👍

from chatgpt-ui.

WongSaang avatar WongSaang commented on July 25, 2024

Please note that 127.0.0.1 points to the container's internal address. I suggest using the following address.

backend-web-server:
    image: wongsaang/chatgpt-ui-web-server:latest
    environment:
      - BACKEND_URL=http://backend-wsgi-server:8000

from chatgpt-ui.

WongSaang avatar WongSaang commented on July 25, 2024

Another solution could be referenced at:

#27 (comment)

from chatgpt-ui.

q20 avatar q20 commented on July 25, 2024

Thanks for the suggestion. I have now specified the IP on the host running docker, recreated the containers, and still 404 trying to access /admin.
Any other ideas?

from chatgpt-ui.

spencerwongfeilong avatar spencerwongfeilong commented on July 25, 2024

try this

from chatgpt-ui.

WongSaang avatar WongSaang commented on July 25, 2024

Can you please send the complete content of your compose.yml file again?

from chatgpt-ui.

q20 avatar q20 commented on July 25, 2024

No problem. Here it is:

version: '3'
services:
  client:
    image: wongsaang/chatgpt-ui-client:latest
    restart: always
    environment:
      - SERVER_DOMAIN=https://MYDOMAIN.COM
      - NUXT_PUBLIC_APP_NAME='ChatGPT UI'
      - NUXT_PUBLIC_TYPEWRITER=true
      - NUXT_PUBLIC_TYPEWRITER_DELAY=100
    depends_on:
      - backend-web-server
    ports:
      - '2480:80'
    networks:
      - chatgpt_ui_network
  backend-wsgi-server:
    image: wongsaang/chatgpt-ui-wsgi-server:latest
    restart: always
    environment:
      - APP_DOMAIN=HOSTIP:2428
      #      - DB_URL=postgres://postgres:postgrespw@localhost:49153/chatgpt # If this parameter is not set, the built-in Sqlite will be used by default. It should be noted that if you do not connect to an external database, the data will be lost after the container is destroyed.
      - DJANGO_SUPERUSER_USERNAME=admin # default superuser name
      - DJANGO_SUPERUSER_PASSWORD=password # default superuser password
      - [email protected] # default superuser email
      # If you want to use the email verification function, you need to configure the following parameters
#      - EMAIL_HOST=SMTP server address
#      - EMAIL_PORT=SMTP server port
#      - EMAIL_HOST_USER=
#      - EMAIL_HOST_PASSWORD=
#      - EMAIL_USE_TLS=True
    volumes:
      - /volume1/docker/chatpgpt-ui/db.sqlite3:/app/db.sqlite3
    ports:
      - '8000:8000'
    networks:
      - chatgpt_ui_network
  backend-web-server:
    image: wongsaang/chatgpt-ui-web-server:latest
    restart: always
    environment:
      - BACKEND_URL=http://HOSTIP:8000
    ports:
      - '2428:80'
    depends_on:
      - backend-wsgi-server
    networks:
      - chatgpt_ui_network

networks:
  chatgpt_ui_network:
    driver: bridge

I'm no Docker expert, but could my issue lie with all the port changes? Perhaps you could use "expose" to allow the containers to communicate with each other on the default without interfering with the Docker host's ports? We could then specify a single port forward for the web client (in my case, 2480:80).

from chatgpt-ui.

WongSaang avatar WongSaang commented on July 25, 2024

Hello,
I have reviewed your configuration file and couldn't find any issues.
May I ask if you are able to access the front-end page through http://HOSTIP ? Also, are you accessing the management panel through http://HOSTIP:2428/admin ?

from chatgpt-ui.

q20 avatar q20 commented on July 25, 2024

I can access via port 2480:

image

But not /admin:

image

from chatgpt-ui.

WongSaang avatar WongSaang commented on July 25, 2024

Haha,
The management panel should be accessed through the backend service. According to your configuration, you should access it through http://hostip:2428/admin.

image

from chatgpt-ui.

q20 avatar q20 commented on July 25, 2024

Progress!

image

Cannot log in with default credentials, though:

image

from chatgpt-ui.

WongSaang avatar WongSaang commented on July 25, 2024

The environment variable APP_DOMAIN of the backend-wsgi-server is equal to the IP address and port of the management panel you are actually requesting.
image
👇
image

from chatgpt-ui.

q20 avatar q20 commented on July 25, 2024

What a champ! I had corrupted that line. 😉
I'm in!

image

from chatgpt-ui.

q20 avatar q20 commented on July 25, 2024

Created test user:

image

Doesn't successfully log in, though:

image

URL is https://MYDOMAIN.COM

from chatgpt-ui.

WongSaang avatar WongSaang commented on July 25, 2024

👍 Before figuring out the reason, you can directly use the default super user login.

from chatgpt-ui.

q20 avatar q20 commented on July 25, 2024

Same issue though, I'm afraid. Superuser cannot log in to the non-admin site. No error, just does nothing. :/

from chatgpt-ui.

WongSaang avatar WongSaang commented on July 25, 2024

sorry, I cannot reproduce your issue.

from chatgpt-ui.

q20 avatar q20 commented on July 25, 2024

No problem. I'll simply start again and see what happens. 👍

from chatgpt-ui.

WongSaang avatar WongSaang commented on July 25, 2024

Hello, if there is nothing else to add, I will close this issue.

from chatgpt-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.