-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
30 lines (30 loc) · 986 Bytes
/
compose.yaml
File metadata and controls
30 lines (30 loc) · 986 Bytes
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
services:
proxy-container:
image: foxxmd/docker-proxy-filter
environment:
- PROXY_URL=http://socket-proxy:2375
- CONTAINER_NAME=foo,bar
ports:
- 2375:2375
socket-proxy:
image: wollomatic/socket-proxy:1.10.0
restart: unless-stopped
user: 0:0
mem_limit: 64M
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges
command:
- '-loglevel=debug'
- '-listenip=0.0.0.0'
- '-allowfrom=proxy-container'
- '-allowHEAD=/_ping'
- '-allowGET=/_ping|/(v1\..{1,2}/)?(info|version|containers|events).*'
- '-allowbindmountfrom=/var/log,/tmp' # restrict bind mounts to specific directories
- '-watchdoginterval=3600' # check once per hour for socket availability
- '-stoponwatchdog' # halt program on error and let compose restart it
- '-shutdowngracetime=5' # wait 5 seconds before shutting down
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro