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
|
API to it. The Alloy config is embedded inline via Compose `configs:`, so
|
||||||
there is no `config.alloy` on disk.
|
there is no `config.alloy` on disk.
|
||||||
|
|
||||||
Both containers have fixed names,
|
`dockerproxy` publishes
|
||||||
`container_name: alloy` and `alloy-dockerproxy`, and `dockerproxy` publishes
|
|
||||||
`127.0.0.1:2375` — Alloy runs with host networking, so it has no compose
|
`127.0.0.1:2375` — Alloy runs with host networking, so it has no compose
|
||||||
network to reach the proxy over.
|
network to reach the proxy over.
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
alloy:
|
alloy:
|
||||||
image: grafana/alloy:v1.16.1
|
image: grafana/alloy:v1.16.1
|
||||||
container_name: alloy
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
hostname: ${ALLOY_HOSTNAME:?required}
|
hostname: ${ALLOY_HOSTNAME:?required}
|
||||||
network_mode: host # node_exporter netdev/netstat sees real host interfaces (eth0…) not veth
|
network_mode: host # node_exporter netdev/netstat sees real host interfaces (eth0…) not veth
|
||||||
@@ -38,7 +37,6 @@ services:
|
|||||||
|
|
||||||
dockerproxy:
|
dockerproxy:
|
||||||
image: tecnativa/docker-socket-proxy:v0.5.0
|
image: tecnativa/docker-socket-proxy:v0.5.0
|
||||||
container_name: alloy-dockerproxy
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# traffmonetizer
|
# traffmonetizer
|
||||||
|
|
||||||
[TraffMonetizer](https://traffmonetizer.com) bandwidth-sharing client, defined
|
[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.
|
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
|
`restart: always` instead of `unless-stopped` is on purpose: the client should
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
traffmonetizer:
|
traffmonetizer:
|
||||||
image: 'traffmonetizer/cli_v2:arm64v8'
|
image: 'traffmonetizer/cli_v2:arm64v8'
|
||||||
container_name: tm
|
|
||||||
restart: always
|
restart: always
|
||||||
command: 'start accept --token ${TOKEN}'
|
command: 'start accept --token ${TOKEN}'
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in new issue
Block a user