initial commit
This commit is contained in:
52
docker_portainer_stacks/nginx/nginx-stack.yml
Normal file
52
docker_portainer_stacks/nginx/nginx-stack.yml
Normal file
@ -0,0 +1,52 @@
|
||||
version: "3.8"
|
||||
|
||||
networks:
|
||||
nginx_network:
|
||||
external:
|
||||
name: nginx_network
|
||||
default:
|
||||
driver: bridge
|
||||
|
||||
services:
|
||||
nginx:
|
||||
image: ghcr.io/linuxserver/swag:${tag_nginx}
|
||||
container_name: ${nginx_container_name}
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
networks:
|
||||
- nginx_network
|
||||
environment:
|
||||
- PUID=${PUID}
|
||||
- PGID=${PGID}
|
||||
- TZ=${TZ}
|
||||
- URL=${nginx_domain}
|
||||
- SUBDOMAINS=${nginx_subdomains}
|
||||
- VALIDATION=${nginx_validation}
|
||||
- DNSPLUGIN=${nginx_dnsplugin}
|
||||
- EMAIL=${user_email}
|
||||
- MAXMINDDB_LICENSE_KEY=${maximunddb_license_key}
|
||||
- STAGING=false
|
||||
- ONLY_SUBDOMAINS=false
|
||||
volumes:
|
||||
- ${volume_nginx}:/config
|
||||
ports:
|
||||
- ${nginx_httpsPort}:443
|
||||
- ${nginx_httpPort}:80
|
||||
restart: ${rst_mode}
|
||||
labels:
|
||||
- com.centurylinklabs.watchtower.enable=${autoupdate_nginx}
|
||||
|
||||
authelia:
|
||||
image: authelia/authelia:${tag_authelia}
|
||||
container_name: ${authelia_container_name}
|
||||
networks:
|
||||
- nginx_network
|
||||
environment:
|
||||
- PUID=${PUID}
|
||||
- PGID=${PGID}
|
||||
- TZ=${TZ}
|
||||
volumes:
|
||||
- ${volume_authelia}:/config
|
||||
restart: ${rst_mode}
|
||||
labels:
|
||||
- com.centurylinklabs.watchtower.enable=${autoupdate_authelia}
|
41
docker_portainer_stacks/nginx/nginx.env
Normal file
41
docker_portainer_stacks/nginx/nginx.env
Normal file
@ -0,0 +1,41 @@
|
||||
# envs
|
||||
# create a docker network with:
|
||||
# docker network create nginx_network
|
||||
|
||||
### Domain Configs..
|
||||
domain=example.com
|
||||
domain_subdomains=homeassistant,plex,nodered,jellyfin,sonarr,radarr
|
||||
user_email=example@gmail.com
|
||||
|
||||
### NGINX Validation
|
||||
nginx_validation=dns
|
||||
nginx_dnsplugin=cloudflare
|
||||
#nginx_duckdnstoken=
|
||||
|
||||
### Container Names
|
||||
nginx_container_name=nginx
|
||||
authelia_container_name=authelia
|
||||
|
||||
### Other Configs..
|
||||
PUID=1000
|
||||
PGID=1000
|
||||
TZ=Europe/Amsterdam
|
||||
rst_mode=unless-stopped
|
||||
maximunddb_license_key=
|
||||
|
||||
### Volumes
|
||||
# create the folders manually
|
||||
volume_nginx=/docker/nginx/nginx
|
||||
volume_authelia=/docker/nginx/authelia
|
||||
|
||||
### AutoUpdate (WatchTower)
|
||||
autoupdate_nginx=true
|
||||
autoupdate_authelia=true
|
||||
|
||||
### Docker Containers TAGs
|
||||
tag_nginx=latest
|
||||
tag_authelia=latest
|
||||
|
||||
### NGINX Ports
|
||||
nginx_httpsPort=443
|
||||
nginx_httpPort=80
|
Reference in New Issue
Block a user