-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathstk_socat.yml
44 lines (40 loc) · 958 Bytes
/
stk_socat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: '3.7'
x-default-opts:
&default-opts
logging:
options:
max-size: "10m"
services:
# this custom haproxy allows us to move traefik to worker nodes
# while this container listens on managers and only allows
# traefik to connect, read-only, to limited docker api calls
# https://github.com/Tecnativa/docker-socket-proxy
proxysocket:
<<: *default-opts
image: devmtl/proxysocket:1.9.10
networks:
- ntw_proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
NETWORKS: 1
SERVICES: 1
TASKS: 1
# CONTAINERS: 1
# SWARM: 1
deploy:
mode: global
placement:
constraints: [node.role == manager]
restart_policy:
condition: on-failure
resources:
limits:
cpus: '0.20'
memory: 8M
reservations:
cpus: '0.10'
memory: 4M
networks:
ntw_proxy:
external: true