mirror of
https://github.com/firewalkwithm3/stacks.git
synced 2025-07-02 02:47:49 +08:00
first commit
This commit is contained in:
commit
149e02a10d
72 changed files with 3442 additions and 0 deletions
34
metrics/compose.yaml
Normal file
34
metrics/compose.yaml
Normal file
|
@ -0,0 +1,34 @@
|
|||
services:
|
||||
docker_socket_proxy:
|
||||
image: ghcr.io/tecnativa/docker-socket-proxy:latest
|
||||
container_name: docker_socket_proxy
|
||||
environment:
|
||||
- CONTAINERS=1 # Allow access to viewing containers
|
||||
- INFO=1
|
||||
- POST=0 # Disallow any POST operations (effectively read-only)
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Mounted as read-only
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 2375:2375
|
||||
networks:
|
||||
- default
|
||||
- metrics
|
||||
|
||||
glances:
|
||||
image: nicolargo/glances:latest
|
||||
container_name: glances
|
||||
restart: always
|
||||
pid: host
|
||||
environment:
|
||||
- "GLANCES_OPT=-w"
|
||||
ports:
|
||||
- 61208:61208
|
||||
networks:
|
||||
- default
|
||||
- metrics
|
||||
|
||||
networks:
|
||||
default:
|
||||
metrics:
|
||||
name: metrics
|
Loading…
Add table
Add a link
Reference in a new issue