DockerWall - Damn Simple Inbound Firewall for Docker Compose
182
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.
docker-compose.yml file, centralizing your configuration.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/
Content type
Image
Digest
sha256:f628f0cab…
Size
3.7 MB
Last updated
over 2 years ago
docker pull aparser/dockerwall