mirror of
https://github.com/firewalkwithm3/stacks.git
synced 2025-08-02 18:50:11 +08:00
22 lines
548 B
YAML
22 lines
548 B
YAML
name: metrics
|
|
services:
|
|
docker_socket_proxy:
|
|
image: ghcr.io/tecnativa/docker-socket-proxy:latest
|
|
container_name: docker_socket_proxy
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro # Mounted as read-only
|
|
environment:
|
|
- CONTAINERS=1 # Allow access to viewing containers
|
|
- INFO=1
|
|
- POST=0 # Disallow any POST operations (effectively read-only)
|
|
ports:
|
|
- '2375:2375'
|
|
networks:
|
|
- default
|
|
- metrics
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
default:
|
|
metrics:
|
|
name: metrics
|