forked from DevOps/deploy.stack
build(victoriametrics): 更新docker compose配置
添加hostname和时区环境变量,调整端口映射并指定存储路径和日志时区
This commit is contained in:
@@ -4,8 +4,13 @@ services:
|
|||||||
image: ${IMAGE_TAG}
|
image: ${IMAGE_TAG}
|
||||||
container_name: victoriametrics
|
container_name: victoriametrics
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
hostname: victoriametrics
|
||||||
|
environment:
|
||||||
|
TZ: Asia/Shanghai
|
||||||
ports:
|
ports:
|
||||||
- 8428:8428
|
- 8428:8428
|
||||||
- 8080:8080
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${Volumes_Path}/data:/victoria-metrics-data
|
- ${Volumes_Path}/data:/victoria-metrics-data
|
||||||
|
command:
|
||||||
|
- "--storageDataPath=/victoria-metrics-data"
|
||||||
|
- "--loggerTimezone=Asia/Shanghai"
|
||||||
|
|||||||
Reference in New Issue
Block a user