swag
v1.0.0SWAG - Secure Web Application Gateway, sets up an Nginx webserver and reverse proxy with php support and a built-in certbot client that automates free SSL server certificate generation and renewal processes (Let's Encrypt and ZeroSSL).
x-arcane:
icon: https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/linuxserver-io.svg
urls:
- https://docs.linuxserver.io/images/docker-swag
services:
swag:
image: lscr.io/linuxserver/swag:latest
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- URL=${URL}
- SUBDOMAINS=${SUBDOMAINS}
- VALIDATION=${VALIDATION}
- CERTPROVIDER=${CERT_PROVIDER} #optional
- DNSPLUGIN=${DNS_PLUGIN} #optional
- EMAIL=${EMAIL_ADDRESS} #optional
- ONLY_SUBDOMAINS=${ONLY_SUBDOMAINS} #optional
- EXTRA_DOMAINS=${EXTRA_DOMAINS} #optional
- STAGING=false #optional
volumes:
- swag:/config
ports:
- 443:443
- 80:80 #optional
restart: unless-stopped
networks:
- swag-proxy
labels:
com.getarcaneapp.arcane.icon: https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/linuxserver-io.svg
volumes:
swag:
networks:
swag-proxy:
# https://docs.linuxserver.io/general/swag
URL=yourdomain.url
# comma separated, no spaces
# ie. www,ftp,cloud
# for wildcard cert, set this to exactly: wildcard
# wildcard cert is available via dns and duckdns validation only
SUBDOMAINS=www,
# Certbot validation method to use, options are:
# http, dns or duckdns
# (dns method also requires DNSPLUGIN variable set)
# (duckdns method requires DUCKDNSTOKEN variable set, and the SUBDOMAINS variable must be either empty or set to wildcard)
VALIDATION=http
# Below are optional
CERT_PROVIDER=
# Required if VALIDATION is set to dns
# Options are:
# aliyun, cloudflare, cloudxns, cpanel, digitalocean, dnsimple, dnsmadeeasy, domeneshop, gandi, google, inwx, linode, luadns, nsone, ovh, rfc2136, route53 and transip
# Also need to enter the credentials into the corresponding ini (or json for some plugins) file under /config/dns-conf
DNS_PLUGIN=
EMAIL_ADDRESS=
ONLY_SUBDOMAINS=false
EXTRA_DOMAINS=