Running Apidog on Docker
If you're trying to upgrade your Apidog version on Docker, check out these Upgrading instuctions.
Requirements
Hardware
Recommended Configuration | Quantity | Target Deployment component |
---|---|---|
4 cores, 8 GB RAM, 100 GB disk space | 1 | Apidog Server |
4 cores, 8 GB RAM, 100 GB disk space | 1 | MySQL database (>= 8.0.17), Redis database (>= 6.0.5) |
Software Requirements
docker --version
. The minimum supported version is 20.10.0 (released in 2020), while using a newer version like 26.1.4 is recommended. For installation instructions, refer to the official Docker documentation: https://docs.docker.com/engine/install/Preparing for deployment
Preparing the Docker image
1.
docker login --username=apidog docker.io
2.
docker pull docker.io/apidog/apidog-ee:<image_tag>
<image_tag>
with the specific image tag you want to download.Preparing the application database configurations
Preparing the application storage service configurations
Running Apidog
Verify successful startup
...
[WARN] This Redis server's `default` user does not require a password, but a password was supplied
connect succeeded! value is null
Executing (default): SELECT 1+1 AS result
...
Connecting to 127.0.0.1:3000 (127.0.0.1:3000)
remote file exists
Connecting to 127.0.0.1 (127.0.0.1:80)
remote file exists
Connecting to 127.0.0.1 (127.0.0.1:80)
remote file exists
Run the application
For web access:
BASE_URL
environment variable. This URL typically follows the format https://api.example.com/web
or http://192.168.0.13/web
.For desktop application access:
Runing Apidog using Docker Compose (Alternative)
docker run
, providing simpler configuration and management. This method requires docker compose
to be installed on the host machine.Install Docker Compose (If Necessary):
docker compose --version
command fails, you need to install Docker Compose. Refer to the official Docker Compose installation guide: Docker Compose Installation Documentation.Configure and Launch
compose.yml
. Modify the environment variables as needed.docker compose -f compose.yml up -d
to start the application.Initial deployments and subsequent upgrades may involve database migrations. These migration tasks do not support concurrency. Therefore, if you are using a multi-container deployment, you must first start a single container to perform the upgrade, and then rollout update the containers that are actually handling traffic.
Restart commands:
Verify successful startup
Additional Docker maintenance and configuration
Modified at 2025-03-13 10:15:19