feat(db): 添加Loki服务配置并更新n9e端口

添加Loki服务的环境配置和stack文件,同时为n9e服务新增20090端口映射
注释掉categraf服务配置以便后续调整
This commit is contained in:
cnphpbb
2025-12-10 17:09:15 +08:00
parent ad24cde39e
commit 4c26f9bfb1
3 changed files with 34 additions and 24 deletions

View File

@@ -0,0 +1,2 @@
IMAGE_TAG=3.6.2
IMAGE_NAME=grafana/loki

View File

@@ -0,0 +1,7 @@
services:
loki:
image: ${IMAGE_NAME}:${IMAGE_TAG}
ports:
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml

View File

@@ -63,6 +63,7 @@ services:
- ./n9eetc_pg:/app/etc - ./n9eetc_pg:/app/etc
ports: ports:
- "17000:17000" - "17000:17000"
- "20090:20090"
networks: networks:
- nightingale - nightingale
depends_on: depends_on:
@@ -76,27 +77,27 @@ services:
command: > command: >
sh -c "/app/n9e" sh -c "/app/n9e"
categraf: # categraf:
image: "flashcatcloud/categraf:latest" # image: "flashcatcloud/categraf:latest"
container_name: "categraf" # container_name: "categraf"
hostname: "categraf01" # hostname: "categraf01"
restart: always # restart: always
environment: # environment:
TZ: Asia/Shanghai # TZ: Asia/Shanghai
HOST_PROC: /hostfs/proc # HOST_PROC: /hostfs/proc
HOST_SYS: /hostfs/sys # HOST_SYS: /hostfs/sys
HOST_MOUNT_PREFIX: /hostfs # HOST_MOUNT_PREFIX: /hostfs
WAIT_HOSTS: nightingale:17000, nightingale:20090 # WAIT_HOSTS: nightingale:17000, nightingale:20090
volumes: # volumes:
- ./categraf/conf:/etc/categraf/conf # - ./categraf/conf:/etc/categraf/conf
- /:/hostfs # - /:/hostfs
- /var/run/docker.sock:/var/run/docker.sock # - /var/run/docker.sock:/var/run/docker.sock
- ./prometc_vm:/etc/prometheus # - ./prometc_vm:/etc/prometheus
# ports: # # ports:
# - "9100:9100/tcp" # # - "9100:9100/tcp"
networks: # networks:
- nightingale # - nightingale
depends_on: # depends_on:
- nightingale # - nightingale
links: # links:
- nightingale:nightingale # - nightingale:nightingale