Apply firewall rules for Docker published ports or host port using etcd for automatic updates.
50K+
This "firewall" container opens ports on the host on which it is running, based on the contents of etcd host to discover the IP addresses which should be whitelisted while supporting automatic updates via confd.
* for all grids - optional if not using etcd).The data is expected to be organized using the following structure:
/mirror/v1/{grid}/{node} = {ip}
It might also work to use environment variables (not tested):
FW_GRIDS=FOO
MIRROR_V1_FOO_BAR={ip}
MIRROR_V1_FOO_BAZ={ip}
version: '2'
services:
redis:
image: redis:latest
ports:
- "6379:6379"
firewall:
image: colinmollenhour/confd-firewall
environment:
- FW_MODE=docker
- FW_SERVICE=redis
- FW_PROTO=tcp
- FW_PORTS=6379
- FW_STATIC=8.9.10.11/30,18.19.20.21/30
- IPTABLES_NFT=1
cap_add:
- NET_ADMIN
network_mode: host
Content type
Image
Digest
sha256:40918c50b…
Size
47.4 MB
Last updated
over 2 years ago
docker pull colinmollenhour/confd-firewall