2021-09-02 18:01:03 +02:00

52 lines
1.2 KiB
YAML

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}