mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-11 03:13:16 +00:00
chore: drop container_name from alloy and traffmonetizer
This commit is contained in:
1 parent
98b0924ca7
commit
272db135b7
4 files changed
+2
-6
No files matched your search
+1
-2
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# traffmonetizer
|
||||
|
||||
[TraffMonetizer](https://traffmonetizer.com) bandwidth-sharing client, defined
|
||||
in `compose.yml` with `container_name: tm` and `restart: always`. It
|
||||
in `compose.yml` with `restart: always`. It
|
||||
only makes outbound connections, so there is no port to map a domain to.
|
||||
|
||||
`restart: always` instead of `unless-stopped` is on purpose: the client should
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
services:
|
||||
traffmonetizer:
|
||||
image: 'traffmonetizer/cli_v2:arm64v8'
|
||||
container_name: tm
|
||||
restart: always
|
||||
command: 'start accept --token ${TOKEN}'
|
||||
environment:
|
||||
|
||||
Reference in new issue
Block a user