完善端口与 https 配置

This commit is contained in:
2026-04-30 12:35:04 +08:00
parent d2d1ab4461
commit 6b87a25f46
2 changed files with 17 additions and 2 deletions

8
caddy/Caddyfile Normal file
View File

@@ -0,0 +1,8 @@
:20080 {
redirect https://{host}{uri}:20443
}
:20443 {
tls internal
reverse_proxy grafana:3000
}

View File

@@ -13,7 +13,7 @@ services:
soft: 262144
hard: 262144
ports:
- 9000:9000
- 127.0.0.1:9000:9000
restart: unless-stopped
otel-collector-esxi:
@@ -35,8 +35,15 @@ services:
image: grafana/grafana-enterprise:latest
volumes:
- grafana-data:/var/lib/grafana
restart: unless-stopped
caddy:
image: caddy:latest
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
ports:
- 23000:3000
- 20080:20080
- 20443:20443
restart: unless-stopped
volumes: