The dockersocket service uses tecnativa/docker-socket-proxy to provide a secure way for Traefik to communicate with the Docker daemon.
Environment settings:
CONTAINERS: 1: Enables access to container information.POST: 0: Disables POST requests to ensure the proxy is read-only for security.
Note: This service requires privileged: true and access to /var/run/docker.sock.
dockersocket:
container_name: dockersocket
image: tecnativa/docker-socket-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- supabase
environment:
CONTAINERS: 1
POST: 0
privileged: true
restart: unless-stopped