Sign inSign up

aparser/dockerwall

By aparser

•Updated over 2 years ago

DockerWall - Damn Simple Inbound Firewall for Docker Compose

Image
0

182

aparser/dockerwall repository overview

⁠DockerWall

⁠Damn Simple Inbound Firewall for Docker Compose

Is configuring a firewall to allow only certain hosts to access your container proving to be a hassle? DockerWall offers a streamlined solution. Now you can conveniently define all your access rules in just a few lines of your docker-compose.yml file.

⁠Key Features:

  • Non-intrusive: DockerWall does not interfere with your host network or your host iptables rules, providing a clean, isolated functionality.
  • Convenience: The allowance list for network access can be stored directly in your docker-compose.yml file, centralizing your configuration.
  • Versatility: DockerWall supports both IP addresses and subnets, giving you flexibility in defining access rules.

⁠Sample Usage:

Below is an example showing how DockerWall can be incorporated into your Docker configuration:

version: '3'
services:
  database:
    image: postgres
    network_mode: "service:firewall"
  firewall:
    image: aparser/dockerwall
    cap_add:
      - NET_ADMIN
    ports:
      - 5432:5432
    environment:
      - ALLOW_FROM="8.8.8.8 1.1.1.1 192.168.0.0/24"

In this example, the ALLOW_FROM environment variable is used to define a list of IP addresses and subnets that are permitted access to the container.

Copyright (c) 2023 https://a-parser.com/⁠

Tag summary

Content type

Image

Digest

sha256:f628f0cab…

Size

3.7 MB

Last updated

over 2 years ago

docker pull aparser/dockerwall