dev-lu / osint_toolkit

A full stack web application that combines many tools and services for security analysts into a single tool.
MIT License
479 stars 81 forks source link

Network Error : Uncaught runtime errors: #14

Closed ShakeelPK closed 11 months ago

ShakeelPK commented 11 months ago

I'm trying to run this tool on docker after everything is up and trying to access 3000 port its show me error. ScreenShot Attached

Waiting for your response

Capture

ShakeelPK commented 11 months ago

Docker status Capture

dev-lu commented 11 months ago

Did you install the app on a remote host? If yes you need to set the IP address of your host in the Docker Compose file.

ShakeelPK commented 11 months ago

It's install on my virtual machine which is contacted via bridged network. Can you please tell me were i need to write the ip address in docker-compose file?

Is this right place to add my machine ip and if yes then i need to write the backend port address ? Capture

dev-lu commented 11 months ago

This is an old version of the Compose file. Please clone the latest version of the repository and uncomment the following lines:

      #args:
      #  - BACKEND_URL=http://<IP_ADDRESS>:<PORT>  # Backend URL without trailing slash
ShakeelPK commented 11 months ago

I believe I'm doing mistake can you please help out to identify the problem because I'm getting same error after enter the my virtual machine ip

Screenshot 2023-08-01 at 11 58 34 PM

dev-lu commented 11 months ago

You are using an old version with a bug when deploying to a remote machine. Please download the latest version and use this as your compose file:

version: "3.8"
services:
  backend:
    build: ./backend
    container_name: backend
    ports:
      - "8000:8000"
  frontend:
    build:
      context: ./frontend
      args:
        - BACKEND_URL=http://192.168.1.24:8000  # Backend URL without trailing slash
    container_name: frontend
    ports:
      - "3000:3000"
    stdin_open: true
    tty: true