62 lines
2.4 KiB
YAML
62 lines
2.4 KiB
YAML
|
# 2023-09-25
|
||
|
# 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" }
|
||
|
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' }
|