chore(dbSer/loki): 添加Loki服务的volume挂载配置

添加本地配置文件挂载到Loki容器中,以支持自定义配置
This commit is contained in:
cnphpbb
2025-12-10 17:14:22 +08:00
parent 4c26f9bfb1
commit bee5160550

View File

@@ -1,7 +1,9 @@
## RUN: docker compose -p loki --env-file ./dbSer/loki/stack.ymlenv.cfg -f ./dbSer/loki/stack.yml up -d
services: services:
loki: loki:
image: ${IMAGE_NAME}:${IMAGE_TAG} image: ${IMAGE_NAME}:${IMAGE_TAG}
ports: ports:
- "3100:3100" - "3100:3100"
volumes:
- /data/loki/local-config.yaml:/etc/loki/local-config.yaml
command: -config.file=/etc/loki/local-config.yaml command: -config.file=/etc/loki/local-config.yaml