chore: drop container_name from alloy and traffmonetizer

This commit is contained in:
tiennm99 committed 2026-10-06 15:57:10 +07:00
1 parent 98b0924ca7
commit 272db135b7
4 files changed
+2 -6

No files matched your search

+1 -2
View File
@@ -9,8 +9,7 @@ collectors. A second, tiny container proxies a read-only slice of the Docker
API to it. The Alloy config is embedded inline via Compose `configs:`, so
there is no `config.alloy` on disk.
Both containers have fixed names,
`container_name: alloy` and `alloy-dockerproxy`, and `dockerproxy` publishes
`dockerproxy` publishes
`127.0.0.1:2375` — Alloy runs with host networking, so it has no compose
network to reach the proxy over.
-2
View File
@@ -1,7 +1,6 @@
services:
alloy:
image: grafana/alloy:v1.16.1
container_name: alloy
restart: unless-stopped
hostname: ${ALLOY_HOSTNAME:?required}
network_mode: host # node_exporter netdev/netstat sees real host interfaces (eth0…) not veth
@@ -38,7 +37,6 @@ services:
dockerproxy:
image: tecnativa/docker-socket-proxy:v0.5.0
container_name: alloy-dockerproxy
restart: unless-stopped
security_opt:
- no-new-privileges:true