Add Goaccess to NPM. (#18)

This commit is contained in:
Robert Middleswarth
2022-04-10 14:57:30 -04:00
committed by GitHub
parent a66dabda40
commit c131091f2f
2 changed files with 131 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
version: "3"
services:
app:
image: jc21/nginx-proxy-manager:latest
container_name: nginx-proxy-manager
environment:
DB_MYSQL_HOST: 'db'
DB_MYSQL_PORT: 3306
DB_MYSQL_USER: 'npm'
DB_MYSQL_PASSWORD: ${DATABASE_PASSWORD}
DB_MYSQL_NAME: 'npm'
volumes:
- /portainer/Files/AppData/Config/nginx-proxy-manager/config.json:/app/config/production.json
- /portainer/Files/AppData/Config/nginx-proxy-manager/data:/data
- /portainer/Files/AppData/Config/nginx-proxy-manager/letsencrypt:/etc/letsencrypt
depends_on:
- db
ports:
- 80:80
- 443:443
- 81:81
restart: unless-stopped
db:
image: linuxserver/mariadb:latest
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: npm
MYSQL_USER: npm
MYSQL_PASSWORD: ${DATABASE_PASSWORD}
PUID: ${USER_UID}
PGID: ${USER_GID}
TZ: ${TZ}
volumes:
- /portainer/Files/AppData/Config/nginx-proxy-manager/database:/config
stats:
image: justsky/goaccess-for-nginxproxymanager:latest
restart: unless-stopped
environment:
PUID: ${USER_UID}
PGID: ${USER_GID}
TZ: ${TZ}
SKIP_ARCHIVED_LOGS: ${SKIP_ARCHIVED_LOGS}
BASIC_AUTH: ${BASIC_AUTH}
BASIC_AUTH_USERNAME: ${BASIC_AUTH_USERNAME}
BASIC_AUTH_PASSWORD: ${BASIC_AUTH_PASSWORD}
volumes:
- /portainer/Files/AppData/Config/nginx-proxy-manager/data/logs:/opt/log:ro

View File

@@ -0,0 +1,80 @@
{
"categories": [
"Proxy",
"Tools"
],
"description": "Nginx Proxy Manager enables you to easily forward to your websites running at home or otherwise, including free SSL, without having to know too much about Nginx or Letsencrypt. Please see the install document at https://github.com/pi-hosted/pi-hosted/tree/master/docs installing the template",
"env": [
{
"default": "1000",
"label": "PUID",
"name": "PUID"
},
{
"default": "1000",
"label": "PGID",
"name": "PGID"
},
{
"default": "America/New_York",
"label": "TZ",
"name": "TZ"
},
{
"default": "password",
"label": "DATABASE_PASSWORD",
"name": "DATABASE_PASSWORD"
},
{
"default": "password",
"label": "MYSQL_ROOT_PASSWORD",
"name": "MYSQL_ROOT_PASSWORD"
},
{
"default": "False",
"label": "SKIP_ARCHIVED_LOGS",
"name": "SKIP_ARCHIVED_LOGS"
"description": "Defaults to False. Set to True to skip archived logs, i.e. proxy-host*.gz"
},
{
"default": "False",
"label": "BASIC_AUTH",
"name": "BASIC_AUTH"
"description": "Defaults to False. Set to True to enable nginx basic authentication. Docker container needs to stopped or restarted each time this flag is modified. This allows for the .htpasswd file to be changed accordingly."
},
{
"default": "user",
"label": "BASIC_AUTH_USERNAME",
"name": "BASIC_AUTH_USERNAME"
"description": "(Optional) Requires BASIC_AUTH to bet set to True. Username for basic authentication."
},
{
"default": "Password",
"label": "BASIC_AUTH_PASSWORD",
"name": "BASIC_AUTH_PASSWORD"
"description": "(Optional) Requires BASIC_AUTH to bet set to True. Password for basic authentication."
}
],
"logo": "https://raw.githubusercontent.com/pi-hosted/pi-hosted/master/images/proxy_mgr.png",
"name": "nginx-proxy-manager-goaccess",
"officialDoc": "https://nginxproxymanager.com/setup/#using-mysql-mariadb-database",
"piHostedDoc": "nginx_proxy_manager.md",
"platform": "linux",
"ports": [
"80:80/tcp",
"81:81/tcp",
"443:443/tcp"
"7880:7880/tcp"
],
"preInstallScript": "nginx-proxy-manager.sh",
"repository": {
"stackfile32": "stack/nginx-proxy-manager-goaccess.yml",
"stackfile64": "stack/nginx-proxy-manager-goaccess.yml",
"url": "https://github.com/pi-hosted/pi-hosted"
},
"restart_policy": "unless-stopped",
"title": "Nginx Proxy Manager with Goaccess Charts",
"type": 3,
"videoID": 9,
"webpage": "https://nginxproxymanager.com/"
}