37 lines
1.5 KiB
YAML
37 lines
1.5 KiB
YAML
# Nginx webserver and reverse proxy with php support and a built-in Certbot (fail2ban included)
|
|
---
|
|
version: "3.0"
|
|
services:
|
|
swag:
|
|
image: lscr.io/linuxserver/swag
|
|
container_name: swag
|
|
cap_add:
|
|
- NET_ADMIN
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1006
|
|
- TZ=America/New_York
|
|
- CERTPROVIDER=letsencrypt # letsencrypt or zerossl, zerossl has issues and allows ips
|
|
- URL=example.com
|
|
- SUBDOMAINS=wildcard
|
|
- VALIDATION=dns # Options: acme=http, dns, duckduckdns
|
|
- DNSPLUGIN=cloudflare # api key in ~/dns-conf
|
|
- PROPAGATION=60
|
|
- EMAIL=your@email.com # for let's encrypt
|
|
- EXTRA_DOMAINS=ai.exampledomain2.com,gitea.exampledomain2.com,mcecon.exampledomain2.com,open-webui.exampledomain2.com,romm.exampledomain2.com,searxng.exampledomain2.com,uploads.exampledomain2.com,vocechat.exampledomain2.com # 192.168.1.22,136.56.13.112 # internal and external ip only works with sslcert
|
|
volumes:
|
|
- /docker-containers/swag-letsencrypt/data:/config
|
|
- /docker-containers/swag-letsencrypt/custom-cont-init.d:/custom-cont-init.d:ro
|
|
# Startup hook lives at /custom-cont-init.d/10-update-gitea-spamhaus.sh and calls /config/update-gitea-spamhaus.sh
|
|
ports:
|
|
- 443:443
|
|
- 80:80
|
|
restart: unless-stopped
|
|
stdin_open: true
|
|
tty: true
|
|
networks:
|
|
- homelab
|
|
networks:
|
|
homelab:
|
|
name: homelab # Network custom name
|
|
external: true # join the above network, no _default one... wont work without it though.. |