Deploy with Docker
NOTE: We support Docker Image, please visit DockerHub for more information. The following steps are for building Docker Image manually.
To build the Dashboard with Docker, you simply download the Dockerfile file from the root directory to your device (no need to download all source codes) then follow this guide.
The manager-api and web will be included in this build guide product.
Prerequisites#
Before using Docker to build images and start containers, make sure that the following dependencies are installed and running in your environment.
Build#
Launch#
- Preparing configuration files
Before starting the container, the configuration file conf.yaml needs to be prepared inside the host to override the default configuration file inside the container.
Kindly note:
- Only when
conf.listen.hostis0.0.0.0can the external network access the services within the container. conf.etcd.endpointsmust be able to access theetcdservice within the container. For example: usehost.docker.internal:2379so that the container can accessetcdon the host network.
- Launch the Dashboard
- Check if the container started successfully
If the container apisix-dashboard is ok, visit http://127.0.0.1:9000 to use the dashboard with GUI, where the default username and password are admin.
- Stop the Dashboard
Other#
- Caching is not recommended when building a image multiple times.