# 2023-09-26 # Stack: dockerproxy --- dockerproxy: name: "dockerproxy" stack: "{{ vm_docker_socketproxy_network }}" ipv6: true directories: - "{{ stack_folder_datas }}/dockerproxy/datas" services: - name: "dockerproxy" image: "tecnativa/docker-socket-proxy:latest" uid: "0" gid: "0" privileged: true capabilities: - DAC_OVERRIDE - SETUID - SETGID - CHOWN - SYS_ADMIN - MKNOD restart: "always" ports: - { exposed: "${VM_PORT_DOCKERPROXY}", container: "2375" } healthcheck: 'wget --no-verbose --tries=1 --spider http://0.0.0.0:2375/version || exit 1' environment: - { name: "DOCKER_HOST", value: "/var/run/docker.sock" } - { name: "LOG_LEVEL", value: "warning" } - { name: "EVENTS", value: "1" } - { name: "PING", value: "1" } - { name: "VERSION", value: "1" } - { name: "AUTH", value: "1" } - { name: "SECRETS", value: "1" } - { name: "POST", value: "1" } - { name: "BUILD", value: "1" } - { name: "COMMIT", value: "1" } - { name: "CONFIGS", value: "1" } - { name: "CONTAINERS", value: "1" } - { name: "DISTRIBUTION", value: "1" } - { name: "EXEC", value: "1" } - { name: "GRPC", value: "1" } - { name: "IMAGES", value: "1" } - { name: "INFO", value: "1" } - { name: "NETWORKS", value: "1" } - { name: "NODES", value: "1" } - { name: "PLUGINS", value: "1" } - { name: "SERVICES", value: "1" } - { name: "SESSION", value: "1" } - { name: "SWARM", value: "1" } - { name: "SYSTEM", value: "1" } - { name: "TASKS", value: "1" } - { name: "VOLUMES", value: "1" } ressources: cpu: "{{ vm_os_cpu_max }}" memory: "{{ 4.0 if 4.0 <= vm_os_memory_max|float else vm_os_memory_max|float }}G" volumes: - { local: '/var/run/docker.sock', container: '/var/run/docker.sock', mode: 'rw' } - { local: '/dev/log', container: '/dev/log', mode: 'ro' } - { local: './{{ stack_folder_datas }}/dockerproxy/datas', container: '/var/lib/haproxy', mode: 'rw' }