Files
Homelab/docker/compose/dc-socket-proxy.yml
2025-02-01 15:42:37 +02:00

18 lines
719 B
YAML

########################### SERVICES
services:
# Docker Socket Proxy - Security Enchanced Proxy for Docker Socket
socket-proxy:
container_name: ${SOCKET_PROXY_CONTAINER_NAME}
image: ${SOCKET_PROXY_IMAGE}:${SOCKET_PROXY_VERSION}
restart: ${SOCKET_PROXY_RESTART_POLICY}
networks:
socket_proxy:
privileged: true
ports:
# - "127.0.0.1:2375:2375" # Port 2375 should only ever get exposed to the internal network. When possible use this line.
# I use the next line instead, as I want portainer to manage multiple docker endpoints within my home network.
- "2375:2375"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
env_file:
- path: ./socket-proxy.env