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

Crashes on Deploy using Docker #96

Open
Type-32 opened this issue May 9, 2023 · 3 comments
Open

Crashes on Deploy using Docker #96

Type-32 opened this issue May 9, 2023 · 3 comments

Comments

@Type-32
Copy link

Type-32 commented May 9, 2023

I followed the steps (via installing requirements and doing python stuff) and when I do docker compose up the container crashes on start. This is the log from my portainer:

Running on port 8501
 * Serving Flask app 'server.app'
 * Debug mode: off
Address not available

I checked all my ports in docker-compose.yml and config.json to be of port 8501:8501 and 8501, but it does not work.

docker-compose.yml

version: '3.5'

services:
  chatgpt-clone:
    image: chatgpt-clone
    container_name: chatgpt-clone
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "8501:8501"

config.json

{

    "site_config": {
        "host" : "0.0.0.0",
        "port" : 8501,
        "debug": false
    },
    "openai_key": "sk-[REDACTED]",

    "openai_api_base": "https://api.openai.com",
    "proxy": {
	"enable": false,
        "http": "127.0.0.1:7890",
        "https": "127.0.0.1:7890"
    }
}
@JustinGuese
Copy link

try a "higher" port as lower ones are usually blocked by the OS

    ports:
      - "31000:8501"

@Type-32
Copy link
Author

Type-32 commented May 10, 2023

Didn't work for me.
And also changing the port seems to do no effect; the logs from portainer still says that is it "Running on Port 8501" even after I've changed the port to 31500.

@BusTopGamer
Copy link

I used portainer.io to deploy it. Create "New stack" choose github option then copy paste main github link in this case https://github.com/xtekky/chatgpt-clone then "diploy". It will handle creating container for you and rest. I use Portainer for all my docker containers. I am using it and no issues at all. give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants