Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

Docker container NEXT_PUBLIC_API_URI Env doesn't work #8

Description

@kanslor

Description

When I pull this frontend package as container ,It seems access the backend API address http://localhost:7437 ,I tried to change the container Environment NEXT_PUBLIC_API_URI to the other Address , makes the frontend remote accessed. but the frontend container still access to http://localhost:7437

Steps to Reproduce the Bug

  1. git clone Agent-LLM reposity git clone https://github.com/Josh-XT/Agent-LLM.
  2. cd Agent-LLM/
  3. sudo docker-compose up -d to run container
  4. change the docker container agent-llm_frontend_1 Env NEXT_PUBLIC_API_URI by managent service such as portainer.
  5. save changes and restart container
  6. use other computer's web browser to open http:{ip}:3000,and open the development tool to check.

Expected Behavior

can access the backend as local do.

Actual Behavior

shows network error,and the frontend still access http://localhost:7437

Additional Context / Screenshots

No response

Operating System

  • Microsoft Windows
  • Apple MacOS
  • Linux
  • Android
  • iOS
  • Other

Python Version

  • Python <= 3.9
  • Python 3.10
  • Python 3.11

Environment Type - Connection

  • Local
  • Remote

Environment Type - Container

  • Using Docker
  • Not Using Docker

Acknowledgements

  • My issue title is concise, descriptive, and in title casing.
  • I have searched the existing issues to make sure this bug has not been reported yet.
  • I am using the latest version of Agent-LLM.
  • I have provided enough information for the maintainers to reproduce and diagnose the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions