Docker Socket Proxy
Docker Socket Proxy is a simple server that provides readonly access to the docker API via TCP.
This is useful for traefik to discover docker containers, but not modify anything.
# Filename: /opt/docker-socket-proxy.localhost/docker-compose.yml
name: docker-socket-proxy-localhost
services:
docker-socket-proxy:
image: tecnativa/docker-socket-proxy
container_name: docker-socket-proxy.localhost
restart: always
ports:
- 127.0.0.1:2375:2375
mem_limit: 64M
environment:
CONTAINERS: 1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
- com.centurylinklabs.watchtower.enable=true