Influxdb over Proxy. Split telegraf in host and net

This commit is contained in:
Florian Zirker 2022-03-06 18:33:13 +01:00
parent f0802c2242
commit c770df59f7
4 changed files with 304 additions and 186 deletions

View file

@ -24,6 +24,20 @@ services:
- host.docker.internal:172.17.0.1
docker-socket-proxy:
image: tecnativa/docker-socket-proxy
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
# grant privileges as environment variables: https://github.com/Tecnativa/docker-socket-proxy#grant-or-revoke-access-to-certain-api-sections
- CONTAINERS=1
- INFO=1
networks:
- dockersocket
privileged: true
whoami:
image: containous/whoami
networks:
@ -40,4 +54,6 @@ services:
networks:
web:
external: true
dockersocket:
external: true