SWAG (Secure Web Application Gateway) is a comprehensive Docker container that combines a powerful Nginx webserver and reverse proxy with essential security tools. It is designed to simplify the process of securely exposing your web applications to the internet. The package includes a built-in Certbot client that automates the generation and renewal of free SSL certificates from providers like Let's Encrypt and ZeroSSL, ensuring your connections are always encrypted.
For enhanced security, SWAG comes with Fail2ban for intrusion prevention, which actively monitors logs and blocks suspicious IP addresses. This container is an ideal all-in-one solution for managing and securing your self-hosted services.
Key features include:
services:
swag:
image: lscr.io/linuxserver/swag:latest
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- URL=${DOMAIN_NAME}
- VALIDATION=http
- SUBDOMAINS=www,
- CERTPROVIDER=letsencrypt
- EMAIL=${LETSENCRYPT_EMAIL}
volumes:
- ./config:/config
ports:
- 443:443
- 80:80
restart: unless-stoppedDOMAIN_NAME=yourdomain.com
LETSENCRYPT_EMAIL=your_email@example.comAuto-fetched 32 minutes ago
Auto-fetched 32 minutes ago