add docker socket proxy with no permissions
This commit is contained in:
+14
-5
@@ -1,22 +1,31 @@
|
|||||||
services:
|
services:
|
||||||
|
supporting-services-socket-proxy:
|
||||||
|
image: lscr.io/linuxserver/socket-proxy:3.2.19-r0-ls82
|
||||||
|
container_name: supporting-services-socket-proxy
|
||||||
|
restart: unless-stopped
|
||||||
|
privileged: true
|
||||||
|
read_only: true
|
||||||
|
tmpfs:
|
||||||
|
- /run
|
||||||
|
volumes:
|
||||||
|
# Add host docker
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:z:ro
|
||||||
|
|
||||||
telegraf:
|
telegraf:
|
||||||
image: telegraf
|
image: telegraf
|
||||||
container_name: telegraf
|
container_name: telegraf
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
privileged: true
|
hostname: ${HOSTNAME}
|
||||||
user: telegraf:${PGID} # make telegraf run with docker group (985) to access docker socket
|
|
||||||
hostname: ${HOSTNAME} # picks up the hostname of komodo-periphery
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${PWD}/telegraf.conf:/etc/telegraf/telegraf.conf:ro
|
- ${PWD}/telegraf.conf:/etc/telegraf/telegraf.conf:ro
|
||||||
# Add host fs
|
# Add host fs
|
||||||
- /:/hostfs:ro
|
- /:/hostfs:ro
|
||||||
# Add host net specifically
|
# Add host net specifically
|
||||||
- /proc/net:/hostfs/proc/net
|
- /proc/net:/hostfs/proc/net
|
||||||
# Add host docker
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:z
|
|
||||||
environment:
|
environment:
|
||||||
- HOST_MOUNT_PREFIX=/hostfs
|
- HOST_MOUNT_PREFIX=/hostfs
|
||||||
- HOST_PROC=/hostfs/proc
|
- HOST_PROC=/hostfs/proc
|
||||||
|
- DOCKER_HOST=tcp://supporting-services-socket-proxy:2375
|
||||||
|
|
||||||
certbot:
|
certbot:
|
||||||
image: git.mrmeeb.stream/mrmeeb/certbot-cron:latest
|
image: git.mrmeeb.stream/mrmeeb/certbot-cron:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user