Sign inSign up

nisemono13/nginx-vts

By nisemono13

•Updated about 1 year ago

集成nginx-module-vts,提供监控数据

Image
Web servers
Monitoring & observability
0

10K+

nisemono13/nginx-vts repository overview

⁠说明

nginx监控暴露端口:13380

nginx容器配置路径:/etc/nginx

  • 监控有关配置文件:/etc/nginx/conf.d/monitor.conf
  • 默认配置文件:/etc/nginx/conf.d/default.conf

⁠部署容器

⁠方式一:和宿主机共享网络
docker run -d \
--name nginx-vts \
--network host \
--restart always \
-e TZ=Asia/Shanghai \
-v /opt/nginx/conf:/etc/nginx \
-v /opt/nginx/html:/usr/share/nginx/html \
-v /opt/nginx/logs:/var/log/nginx \
nisemono13/nginx-vts:v1
⁠方式二:映射网络
docker run -d \
--name nginx-vts \
--restart always \
-e TZ=Asia/Shanghai \
-v /opt/nginx/conf:/etc/nginx \
-v /opt/nginx/html:/usr/share/nginx/html \
-v /opt/nginx/logs:/var/log/nginx \
-p 80:80 \
-p 443:443 \
-p 13380:13380 \ # 监控数据暴露端口
nisemono13/nginx-vts:v1

Tag summary

Content type

Image

Digest

sha256:8e91f3cf9…

Size

26.1 MB

Last updated

about 1 year ago

docker pull nisemono13/nginx-vts:v1