Running Apidog Multi-Container Deployment without Kubernetes
Before proceeding, please read the documentation on Running Apidog on Docker.
Environment Setup
docker --version
. The minimum supported version is 20.10.0 (released in 2020). However, using a newer version, such as 26.1.4, is recommended. For installation instructions, refer to the official Docker documentation: https://docs.docker.com/engine/install/Initial deployments and subsequent upgrades may involve database schema updates or data migration tasks. These migration tasks do not support concurrent execution.
Therefore, consider launching a separate container to perform the upgrade first, and then update the containers handling traffic.
Apidog Node Setup
1.
run-apidog.sh
: vi run-apidog.sh
. Press i
to enter insert mode and paste the following content.2.
3.
sh run-apidog.sh
.
Nginx Gateway Setup
1.
init-nginx.sh
: vi init-nginx.sh
. Press i
to enter insert mode and paste the following content. Then, execute the script: sh init-nginx.sh
.
2.
3.
run-nginx.sh
: vi run-nginx.sh
. Press i
to enter insert mode and paste the following content. Do not run this script yet.
4.
mkdir -p $PWD/appdata/conf.d/certs/
vi $PWD/appdata/conf.d/certs/pem
(Paste the certificate content into this file).vi $PWD/appdata/conf.d/certs/key
(Paste the key content into this file).default.conf
file: vi $PWD/appdata/conf.d/default.conf
. Press i
to enter insert mode and paste the following content, updating the server
directives in the backend
upstream block and the server_name
directives to match your environment.
5.
run-nginx.sh
script: sh run-nginx.sh
.Updating Apidog
Modified at 2025-03-05 09:24:26