Docker Deployment¶
This page describes how to manually deploy OpsAnt using Docker.
1. Pull the image¶
2. Prepare the configuration file¶
Obtain the configuration file template from the installation package (the install/conf/ directory), which mainly includes:
proxy/proxy.ini— main platform configuration- Database / Redis connection information
3. Start the container¶
# 启动 MySQL / Redis(可复用已有实例)
docker run -d --name opsany-proxy-mysql \
-e MYSQL_ROOT_PASSWORD=<密码> mysql:5.7
docker run -d --name opsany-proxy-redis redis:7
# 启动主容器
docker run -d --name opsany-proxy-opsant \
-p 8010:8010 \
-v /data/opsant/conf:/opt/opsany-proxy/conf \
registry.cn-beijing.aliyuncs.com/opsany/opsany-proxy-opsant:2.3.5
4. Initialize the database¶
5. Access¶
Visit http://<服务器IP>:8010 and log in with the default account admin (the password is set in the configuration).
Notes¶
- For complete container orchestration (including Prometheus, Alertmanager, Consul, SaltStack, etc.), it is recommended to use the one-click script install; the script has the full orchestration built in
- The code path inside the image is
/opt/opsany-proxy, and the configuration mount directory must correspond to the path inside the image