This article records configuration and changes from a historical FastGPT release. Use it to understand that release, and consult the release notes for your installed and target versions before applying dependencies, configuration, or migration steps.
Official Reference Configuration File
The official docker-compose configuration for Docker-based FastGPT deployments is available at https://github.com/labring/FastGPT/blob/main/document/public/deploy/docker/main/global/docker-compose.pg.yml. Users should pull the latest version of this file to use as a reference for all required modifications.
Mandatory Configuration Changes
Two core updates are required to integrate the sandbox container into an existing Docker FastGPT deployment:
- Add a new dedicated
sandboxcontainer service to the deployment’s docker-compose configuration. - Add the
SANDBOX_URLenvironment variable to both the standardfastgptcontainer and the commercialfastgpt-procontainer, to enable communication between the main services and the sandbox.
Step-by-Step Implementation
Follow these structured steps to complete the setup:
- Download the latest version of the official
docker-compose.pg.ymlfile to your Docker deployment host machine. - Edit the downloaded file to include the pre-defined
sandboxcontainer service block from the reference file. - Locate the environment variable sections for the
fastgptandfastgpt-procontainers, then add theSANDBOX_URLvariable configured to point to the internal network address of the new sandbox container. - Verify that the sandbox container’s network ports are not bound to public network interfaces, to align with security guidelines.
- Apply the updated configuration to launch the sandbox container and reload the core FastGPT services.
Security Guidance
The sandbox container does not include built-in credential verification, so exposing it to public networks is not recommended. All traffic to the sandbox container should be restricted to internal FastGPT service networks only.