diff --git a/proxy-mysql/alpine/README.md b/proxy-mysql/alpine/README.md index 22b31e46d..9c583fe04 100644 --- a/proxy-mysql/alpine/README.md +++ b/proxy-mysql/alpine/README.md @@ -106,9 +106,25 @@ This variable is IP or DNS name of MySQL server. By default, value is 'mysql-ser This variable is port of MySQL server. By default, value is '3306'. -### `MYSQL_USER`, `MYSQL_PASSWORD` +### `MYSQL_USER`, `MYSQL_PASSWORD`, `MYSQL_USER_FILE`, `MYSQL_PASSWORD_FILE` -These variables are used by Zabbix proxy to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix proxy to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `MYSQL_USER` or `MYSQL_USER_FILE`! + +```console +docker run --name some-zabbix-proxy-mysql -e DB_SERVER_HOST="some-mysql-server" -v ./.MYSQL_USER:/run/secrets/MYSQL_USER -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -v ./.MYSQL_PASSWORD:/run/secrets/MYSQL_PASSWORD -e MYSQL_PASSWORD_FILE=/var/run/secrets/MYSQL_PASSWORD -e ZBX_HOSTNAME=some-hostname -e ZBX_SERVER_HOST=some-zabbix-server -d zabbix/zabbix-proxy-mysql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create MYSQL_USER - +printf "zabbix" | docker secret create MYSQL_PASSWORD - +docker run --name some-zabbix-proxy-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -e MYSQL_PASSWORD_FILE=/run/secrets/MYSQL_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e ZBX_HOSTNAME=some-hostname -e ZBX_SERVER_HOST=some-zabbix-server -d zabbix/zabbix-proxy-mysql:tag +``` + +This method is also applicable for `MYSQL_ROOT_PASSWORD` with `MYSQL_ROOT_PASSWORD_FILE`. + +By default, values for `MYSQL_USER` and `MYSQL_PASSWORD` are `zabbix`, `zabbix`. ### `MYSQL_DATABASE` diff --git a/proxy-mysql/centos/README.md b/proxy-mysql/centos/README.md index 22b31e46d..9c583fe04 100644 --- a/proxy-mysql/centos/README.md +++ b/proxy-mysql/centos/README.md @@ -106,9 +106,25 @@ This variable is IP or DNS name of MySQL server. By default, value is 'mysql-ser This variable is port of MySQL server. By default, value is '3306'. -### `MYSQL_USER`, `MYSQL_PASSWORD` +### `MYSQL_USER`, `MYSQL_PASSWORD`, `MYSQL_USER_FILE`, `MYSQL_PASSWORD_FILE` -These variables are used by Zabbix proxy to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix proxy to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `MYSQL_USER` or `MYSQL_USER_FILE`! + +```console +docker run --name some-zabbix-proxy-mysql -e DB_SERVER_HOST="some-mysql-server" -v ./.MYSQL_USER:/run/secrets/MYSQL_USER -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -v ./.MYSQL_PASSWORD:/run/secrets/MYSQL_PASSWORD -e MYSQL_PASSWORD_FILE=/var/run/secrets/MYSQL_PASSWORD -e ZBX_HOSTNAME=some-hostname -e ZBX_SERVER_HOST=some-zabbix-server -d zabbix/zabbix-proxy-mysql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create MYSQL_USER - +printf "zabbix" | docker secret create MYSQL_PASSWORD - +docker run --name some-zabbix-proxy-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -e MYSQL_PASSWORD_FILE=/run/secrets/MYSQL_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e ZBX_HOSTNAME=some-hostname -e ZBX_SERVER_HOST=some-zabbix-server -d zabbix/zabbix-proxy-mysql:tag +``` + +This method is also applicable for `MYSQL_ROOT_PASSWORD` with `MYSQL_ROOT_PASSWORD_FILE`. + +By default, values for `MYSQL_USER` and `MYSQL_PASSWORD` are `zabbix`, `zabbix`. ### `MYSQL_DATABASE` diff --git a/proxy-mysql/ubuntu/README.md b/proxy-mysql/ubuntu/README.md index 22b31e46d..9c583fe04 100644 --- a/proxy-mysql/ubuntu/README.md +++ b/proxy-mysql/ubuntu/README.md @@ -106,9 +106,25 @@ This variable is IP or DNS name of MySQL server. By default, value is 'mysql-ser This variable is port of MySQL server. By default, value is '3306'. -### `MYSQL_USER`, `MYSQL_PASSWORD` +### `MYSQL_USER`, `MYSQL_PASSWORD`, `MYSQL_USER_FILE`, `MYSQL_PASSWORD_FILE` -These variables are used by Zabbix proxy to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix proxy to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `MYSQL_USER` or `MYSQL_USER_FILE`! + +```console +docker run --name some-zabbix-proxy-mysql -e DB_SERVER_HOST="some-mysql-server" -v ./.MYSQL_USER:/run/secrets/MYSQL_USER -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -v ./.MYSQL_PASSWORD:/run/secrets/MYSQL_PASSWORD -e MYSQL_PASSWORD_FILE=/var/run/secrets/MYSQL_PASSWORD -e ZBX_HOSTNAME=some-hostname -e ZBX_SERVER_HOST=some-zabbix-server -d zabbix/zabbix-proxy-mysql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create MYSQL_USER - +printf "zabbix" | docker secret create MYSQL_PASSWORD - +docker run --name some-zabbix-proxy-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -e MYSQL_PASSWORD_FILE=/run/secrets/MYSQL_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e ZBX_HOSTNAME=some-hostname -e ZBX_SERVER_HOST=some-zabbix-server -d zabbix/zabbix-proxy-mysql:tag +``` + +This method is also applicable for `MYSQL_ROOT_PASSWORD` with `MYSQL_ROOT_PASSWORD_FILE`. + +By default, values for `MYSQL_USER` and `MYSQL_PASSWORD` are `zabbix`, `zabbix`. ### `MYSQL_DATABASE` diff --git a/server-mysql/alpine/README.md b/server-mysql/alpine/README.md index 639a40362..d2846429b 100644 --- a/server-mysql/alpine/README.md +++ b/server-mysql/alpine/README.md @@ -73,12 +73,28 @@ When you start the `zabbix-server-mysql` image, you can adjust the configuration This variable is IP or DNS name of MySQL server. By default, value is 'mysql-server' ### `DB_SERVER_PORT` - + This variable is port of MySQL server. By default, value is '3306'. -### `MYSQL_USER`, `MYSQL_PASSWORD` +### `MYSQL_USER`, `MYSQL_PASSWORD`, `MYSQL_USER_FILE`, `MYSQL_PASSWORD_FILE` -These variables are used by Zabbix server to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix server to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `MYSQL_USER` or `MYSQL_USER_FILE`! + +```console +docker run --name some-zabbix-server-mysql -e DB_SERVER_HOST="some-mysql-server" -v ./.MYSQL_USER:/run/secrets/MYSQL_USER -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -v ./.MYSQL_PASSWORD:/run/secrets/MYSQL_PASSWORD -e MYSQL_PASSWORD_FILE=/var/run/secrets/MYSQL_PASSWORD -d zabbix/zabbix-server-mysql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create MYSQL_USER - +printf "zabbix" | docker secret create MYSQL_PASSWORD - +docker run --name some-zabbix-server-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -e MYSQL_PASSWORD_FILE=/run/secrets/MYSQL_PASSWORD -d zabbix/zabbix-server-mysql:tag +``` + +This method is also applicable for `MYSQL_ROOT_PASSWORD` with `MYSQL_ROOT_PASSWORD_FILE`. + +By default, values for `MYSQL_USER` and `MYSQL_PASSWORD` are `zabbix`, `zabbix`. ### `MYSQL_DATABASE` diff --git a/server-mysql/centos/README.md b/server-mysql/centos/README.md index 639a40362..d2846429b 100644 --- a/server-mysql/centos/README.md +++ b/server-mysql/centos/README.md @@ -73,12 +73,28 @@ When you start the `zabbix-server-mysql` image, you can adjust the configuration This variable is IP or DNS name of MySQL server. By default, value is 'mysql-server' ### `DB_SERVER_PORT` - + This variable is port of MySQL server. By default, value is '3306'. -### `MYSQL_USER`, `MYSQL_PASSWORD` +### `MYSQL_USER`, `MYSQL_PASSWORD`, `MYSQL_USER_FILE`, `MYSQL_PASSWORD_FILE` -These variables are used by Zabbix server to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix server to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `MYSQL_USER` or `MYSQL_USER_FILE`! + +```console +docker run --name some-zabbix-server-mysql -e DB_SERVER_HOST="some-mysql-server" -v ./.MYSQL_USER:/run/secrets/MYSQL_USER -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -v ./.MYSQL_PASSWORD:/run/secrets/MYSQL_PASSWORD -e MYSQL_PASSWORD_FILE=/var/run/secrets/MYSQL_PASSWORD -d zabbix/zabbix-server-mysql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create MYSQL_USER - +printf "zabbix" | docker secret create MYSQL_PASSWORD - +docker run --name some-zabbix-server-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -e MYSQL_PASSWORD_FILE=/run/secrets/MYSQL_PASSWORD -d zabbix/zabbix-server-mysql:tag +``` + +This method is also applicable for `MYSQL_ROOT_PASSWORD` with `MYSQL_ROOT_PASSWORD_FILE`. + +By default, values for `MYSQL_USER` and `MYSQL_PASSWORD` are `zabbix`, `zabbix`. ### `MYSQL_DATABASE` diff --git a/server-mysql/ubuntu/README.md b/server-mysql/ubuntu/README.md index 639a40362..d2846429b 100644 --- a/server-mysql/ubuntu/README.md +++ b/server-mysql/ubuntu/README.md @@ -73,12 +73,28 @@ When you start the `zabbix-server-mysql` image, you can adjust the configuration This variable is IP or DNS name of MySQL server. By default, value is 'mysql-server' ### `DB_SERVER_PORT` - + This variable is port of MySQL server. By default, value is '3306'. -### `MYSQL_USER`, `MYSQL_PASSWORD` +### `MYSQL_USER`, `MYSQL_PASSWORD`, `MYSQL_USER_FILE`, `MYSQL_PASSWORD_FILE` -These variables are used by Zabbix server to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix server to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `MYSQL_USER` or `MYSQL_USER_FILE`! + +```console +docker run --name some-zabbix-server-mysql -e DB_SERVER_HOST="some-mysql-server" -v ./.MYSQL_USER:/run/secrets/MYSQL_USER -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -v ./.MYSQL_PASSWORD:/run/secrets/MYSQL_PASSWORD -e MYSQL_PASSWORD_FILE=/var/run/secrets/MYSQL_PASSWORD -d zabbix/zabbix-server-mysql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create MYSQL_USER - +printf "zabbix" | docker secret create MYSQL_PASSWORD - +docker run --name some-zabbix-server-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -e MYSQL_PASSWORD_FILE=/run/secrets/MYSQL_PASSWORD -d zabbix/zabbix-server-mysql:tag +``` + +This method is also applicable for `MYSQL_ROOT_PASSWORD` with `MYSQL_ROOT_PASSWORD_FILE`. + +By default, values for `MYSQL_USER` and `MYSQL_PASSWORD` are `zabbix`, `zabbix`. ### `MYSQL_DATABASE` diff --git a/server-pgsql/alpine/README.md b/server-pgsql/alpine/README.md index 25385b59a..d94f5e381 100644 --- a/server-pgsql/alpine/README.md +++ b/server-pgsql/alpine/README.md @@ -75,9 +75,23 @@ This variable is IP or DNS name of PostgreSQL server. By default, value is 'post This variable is port of PostgreSQL server. By default, value is '5432'. -### `POSTGRES_USER`, `POSTGRES_PASSWORD` +### `POSTGRES_USER`, `POSTGRES_PASSWORD`, `POSTGRES_USER_FILE`, `POSTGRES_PASSWORD_FILE` -These variables are used by Zabbix server to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix server to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `POSTGRES_USER` or `POSTGRES_USER_FILE`! + +```console +docker run --name some-zabbix-server-pgsql -e DB_SERVER_HOST="some-postgres-server" -v ./.POSTGRES_USER:/run/secrets/POSTGRES_USER -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -v ./.POSTGRES_PASSWORD:/run/secrets/POSTGRES_PASSWORD -e POSTGRES_PASSWORD_FILE=/var/run/secrets/POSTGRES_PASSWORD -d zabbix/zabbix-server-pgsql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create POSTGRES_USER - +printf "zabbix" | docker secret create POSTGRES_PASSWORD - +docker run --name some-zabbix-server-pgsql -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -e POSTGRES_PASSWORD_FILE=/run/secrets/POSTGRES_PASSWORD -d zabbix/zabbix-server-pgsql:tag +``` + +By default, values for `POSTGRES_USER` and `POSTGRES_PASSWORD` are `zabbix`, `zabbix`. ### `POSTGRES_DB` diff --git a/server-pgsql/centos/README.md b/server-pgsql/centos/README.md index 25385b59a..d94f5e381 100644 --- a/server-pgsql/centos/README.md +++ b/server-pgsql/centos/README.md @@ -75,9 +75,23 @@ This variable is IP or DNS name of PostgreSQL server. By default, value is 'post This variable is port of PostgreSQL server. By default, value is '5432'. -### `POSTGRES_USER`, `POSTGRES_PASSWORD` +### `POSTGRES_USER`, `POSTGRES_PASSWORD`, `POSTGRES_USER_FILE`, `POSTGRES_PASSWORD_FILE` -These variables are used by Zabbix server to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix server to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `POSTGRES_USER` or `POSTGRES_USER_FILE`! + +```console +docker run --name some-zabbix-server-pgsql -e DB_SERVER_HOST="some-postgres-server" -v ./.POSTGRES_USER:/run/secrets/POSTGRES_USER -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -v ./.POSTGRES_PASSWORD:/run/secrets/POSTGRES_PASSWORD -e POSTGRES_PASSWORD_FILE=/var/run/secrets/POSTGRES_PASSWORD -d zabbix/zabbix-server-pgsql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create POSTGRES_USER - +printf "zabbix" | docker secret create POSTGRES_PASSWORD - +docker run --name some-zabbix-server-pgsql -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -e POSTGRES_PASSWORD_FILE=/run/secrets/POSTGRES_PASSWORD -d zabbix/zabbix-server-pgsql:tag +``` + +By default, values for `POSTGRES_USER` and `POSTGRES_PASSWORD` are `zabbix`, `zabbix`. ### `POSTGRES_DB` diff --git a/server-pgsql/ubuntu/README.md b/server-pgsql/ubuntu/README.md index 25385b59a..d94f5e381 100644 --- a/server-pgsql/ubuntu/README.md +++ b/server-pgsql/ubuntu/README.md @@ -75,9 +75,23 @@ This variable is IP or DNS name of PostgreSQL server. By default, value is 'post This variable is port of PostgreSQL server. By default, value is '5432'. -### `POSTGRES_USER`, `POSTGRES_PASSWORD` +### `POSTGRES_USER`, `POSTGRES_PASSWORD`, `POSTGRES_USER_FILE`, `POSTGRES_PASSWORD_FILE` -These variables are used by Zabbix server to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix server to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `POSTGRES_USER` or `POSTGRES_USER_FILE`! + +```console +docker run --name some-zabbix-server-pgsql -e DB_SERVER_HOST="some-postgres-server" -v ./.POSTGRES_USER:/run/secrets/POSTGRES_USER -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -v ./.POSTGRES_PASSWORD:/run/secrets/POSTGRES_PASSWORD -e POSTGRES_PASSWORD_FILE=/var/run/secrets/POSTGRES_PASSWORD -d zabbix/zabbix-server-pgsql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create POSTGRES_USER - +printf "zabbix" | docker secret create POSTGRES_PASSWORD - +docker run --name some-zabbix-server-pgsql -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -e POSTGRES_PASSWORD_FILE=/run/secrets/POSTGRES_PASSWORD -d zabbix/zabbix-server-pgsql:tag +``` + +By default, values for `POSTGRES_USER` and `POSTGRES_PASSWORD` are `zabbix`, `zabbix`. ### `POSTGRES_DB` diff --git a/web-apache-mysql/alpine/README.md b/web-apache-mysql/alpine/README.md index 162c75632..c34b38bd3 100644 --- a/web-apache-mysql/alpine/README.md +++ b/web-apache-mysql/alpine/README.md @@ -92,9 +92,25 @@ This variable is IP or DNS name of MySQL server. By default, value is 'mysql-ser This variable is port of MySQL server. By default, value is '3306'. -### `MYSQL_USER`, `MYSQL_PASSWORD` +### `MYSQL_USER`, `MYSQL_PASSWORD`, `MYSQL_USER_FILE`, `MYSQL_PASSWORD_FILE` -These variables are used by Zabbix web interface to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix web-interface to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `MYSQL_USER` or `MYSQL_USER_FILE`! + +```console +docker run --name some-zabbix-web-apache-mysql -e DB_SERVER_HOST="some-mysql-server" -v ./.MYSQL_USER:/run/secrets/MYSQL_USER -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -v ./.MYSQL_PASSWORD:/run/secrets/MYSQL_PASSWORD -e MYSQL_PASSWORD_FILE=/var/run/secrets/MYSQL_PASSWORD -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create MYSQL_USER - +printf "zabbix" | docker secret create MYSQL_PASSWORD - +docker run --name some-zabbix-web-apache-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -e MYSQL_PASSWORD_FILE=/run/secrets/MYSQL_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag +``` + +This method is also applicable for `MYSQL_ROOT_PASSWORD` with `MYSQL_ROOT_PASSWORD_FILE`. + +By default, values for `MYSQL_USER` and `MYSQL_PASSWORD` are `zabbix`, `zabbix`. ### `MYSQL_DATABASE` diff --git a/web-apache-mysql/centos/README.md b/web-apache-mysql/centos/README.md index 162c75632..c34b38bd3 100644 --- a/web-apache-mysql/centos/README.md +++ b/web-apache-mysql/centos/README.md @@ -92,9 +92,25 @@ This variable is IP or DNS name of MySQL server. By default, value is 'mysql-ser This variable is port of MySQL server. By default, value is '3306'. -### `MYSQL_USER`, `MYSQL_PASSWORD` +### `MYSQL_USER`, `MYSQL_PASSWORD`, `MYSQL_USER_FILE`, `MYSQL_PASSWORD_FILE` -These variables are used by Zabbix web interface to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix web-interface to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `MYSQL_USER` or `MYSQL_USER_FILE`! + +```console +docker run --name some-zabbix-web-apache-mysql -e DB_SERVER_HOST="some-mysql-server" -v ./.MYSQL_USER:/run/secrets/MYSQL_USER -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -v ./.MYSQL_PASSWORD:/run/secrets/MYSQL_PASSWORD -e MYSQL_PASSWORD_FILE=/var/run/secrets/MYSQL_PASSWORD -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create MYSQL_USER - +printf "zabbix" | docker secret create MYSQL_PASSWORD - +docker run --name some-zabbix-web-apache-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -e MYSQL_PASSWORD_FILE=/run/secrets/MYSQL_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag +``` + +This method is also applicable for `MYSQL_ROOT_PASSWORD` with `MYSQL_ROOT_PASSWORD_FILE`. + +By default, values for `MYSQL_USER` and `MYSQL_PASSWORD` are `zabbix`, `zabbix`. ### `MYSQL_DATABASE` diff --git a/web-apache-mysql/ubuntu/README.md b/web-apache-mysql/ubuntu/README.md index 162c75632..c34b38bd3 100644 --- a/web-apache-mysql/ubuntu/README.md +++ b/web-apache-mysql/ubuntu/README.md @@ -92,9 +92,25 @@ This variable is IP or DNS name of MySQL server. By default, value is 'mysql-ser This variable is port of MySQL server. By default, value is '3306'. -### `MYSQL_USER`, `MYSQL_PASSWORD` +### `MYSQL_USER`, `MYSQL_PASSWORD`, `MYSQL_USER_FILE`, `MYSQL_PASSWORD_FILE` -These variables are used by Zabbix web interface to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix web-interface to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `MYSQL_USER` or `MYSQL_USER_FILE`! + +```console +docker run --name some-zabbix-web-apache-mysql -e DB_SERVER_HOST="some-mysql-server" -v ./.MYSQL_USER:/run/secrets/MYSQL_USER -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -v ./.MYSQL_PASSWORD:/run/secrets/MYSQL_PASSWORD -e MYSQL_PASSWORD_FILE=/var/run/secrets/MYSQL_PASSWORD -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create MYSQL_USER - +printf "zabbix" | docker secret create MYSQL_PASSWORD - +docker run --name some-zabbix-web-apache-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -e MYSQL_PASSWORD_FILE=/run/secrets/MYSQL_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag +``` + +This method is also applicable for `MYSQL_ROOT_PASSWORD` with `MYSQL_ROOT_PASSWORD_FILE`. + +By default, values for `MYSQL_USER` and `MYSQL_PASSWORD` are `zabbix`, `zabbix`. ### `MYSQL_DATABASE` diff --git a/web-apache-pgsql/alpine/README.md b/web-apache-pgsql/alpine/README.md index fcb54ecaa..b5cfc877c 100644 --- a/web-apache-pgsql/alpine/README.md +++ b/web-apache-pgsql/alpine/README.md @@ -92,9 +92,23 @@ This variable is IP or DNS name of PostgreSQL server. By default, value is 'post This variable is port of PostgreSQL server. By default, value is '5432'. -### `POSTGRES_USER`, `POSTGRES_PASSWORD` +### `POSTGRES_USER`, `POSTGRES_PASSWORD`, `POSTGRES_USER_FILE`, `POSTGRES_PASSWORD_FILE` -These variables are used by Zabbix web interface to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix web interface to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `POSTGRES_USER` or `POSTGRES_USER_FILE`! + +```console +docker run --name some-zabbix-web-apache-pgsql -e DB_SERVER_HOST="some-postgres-server" -v ./.POSTGRES_USER:/run/secrets/POSTGRES_USER -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -v ./.POSTGRES_PASSWORD:/run/secrets/POSTGRES_PASSWORD -e POSTGRES_PASSWORD_FILE=/var/run/secrets/POSTGRES_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create POSTGRES_USER - +printf "zabbix" | docker secret create POSTGRES_PASSWORD - +docker run --name some-zabbix-web-apache-pgsql -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -e POSTGRES_PASSWORD_FILE=/run/secrets/POSTGRES_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag +``` + +By default, values for `POSTGRES_USER` and `POSTGRES_PASSWORD` are `zabbix`, `zabbix`. ### `POSTGRES_DB` diff --git a/web-apache-pgsql/centos/README.md b/web-apache-pgsql/centos/README.md index fcb54ecaa..b5cfc877c 100644 --- a/web-apache-pgsql/centos/README.md +++ b/web-apache-pgsql/centos/README.md @@ -92,9 +92,23 @@ This variable is IP or DNS name of PostgreSQL server. By default, value is 'post This variable is port of PostgreSQL server. By default, value is '5432'. -### `POSTGRES_USER`, `POSTGRES_PASSWORD` +### `POSTGRES_USER`, `POSTGRES_PASSWORD`, `POSTGRES_USER_FILE`, `POSTGRES_PASSWORD_FILE` -These variables are used by Zabbix web interface to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix web interface to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `POSTGRES_USER` or `POSTGRES_USER_FILE`! + +```console +docker run --name some-zabbix-web-apache-pgsql -e DB_SERVER_HOST="some-postgres-server" -v ./.POSTGRES_USER:/run/secrets/POSTGRES_USER -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -v ./.POSTGRES_PASSWORD:/run/secrets/POSTGRES_PASSWORD -e POSTGRES_PASSWORD_FILE=/var/run/secrets/POSTGRES_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create POSTGRES_USER - +printf "zabbix" | docker secret create POSTGRES_PASSWORD - +docker run --name some-zabbix-web-apache-pgsql -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -e POSTGRES_PASSWORD_FILE=/run/secrets/POSTGRES_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag +``` + +By default, values for `POSTGRES_USER` and `POSTGRES_PASSWORD` are `zabbix`, `zabbix`. ### `POSTGRES_DB` diff --git a/web-apache-pgsql/ubuntu/README.md b/web-apache-pgsql/ubuntu/README.md index fcb54ecaa..b5cfc877c 100644 --- a/web-apache-pgsql/ubuntu/README.md +++ b/web-apache-pgsql/ubuntu/README.md @@ -92,9 +92,23 @@ This variable is IP or DNS name of PostgreSQL server. By default, value is 'post This variable is port of PostgreSQL server. By default, value is '5432'. -### `POSTGRES_USER`, `POSTGRES_PASSWORD` +### `POSTGRES_USER`, `POSTGRES_PASSWORD`, `POSTGRES_USER_FILE`, `POSTGRES_PASSWORD_FILE` -These variables are used by Zabbix web interface to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix web interface to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `POSTGRES_USER` or `POSTGRES_USER_FILE`! + +```console +docker run --name some-zabbix-web-apache-pgsql -e DB_SERVER_HOST="some-postgres-server" -v ./.POSTGRES_USER:/run/secrets/POSTGRES_USER -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -v ./.POSTGRES_PASSWORD:/run/secrets/POSTGRES_PASSWORD -e POSTGRES_PASSWORD_FILE=/var/run/secrets/POSTGRES_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create POSTGRES_USER - +printf "zabbix" | docker secret create POSTGRES_PASSWORD - +docker run --name some-zabbix-web-apache-pgsql -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -e POSTGRES_PASSWORD_FILE=/run/secrets/POSTGRES_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag +``` + +By default, values for `POSTGRES_USER` and `POSTGRES_PASSWORD` are `zabbix`, `zabbix`. ### `POSTGRES_DB` diff --git a/web-nginx-mysql/alpine/README.md b/web-nginx-mysql/alpine/README.md index 1edc07b9c..1adcdf2e5 100644 --- a/web-nginx-mysql/alpine/README.md +++ b/web-nginx-mysql/alpine/README.md @@ -92,9 +92,25 @@ This variable is IP or DNS name of MySQL server. By default, value is 'mysql-ser This variable is port of MySQL server. By default, value is '3306'. -### `MYSQL_USER`, `MYSQL_PASSWORD` +### `MYSQL_USER`, `MYSQL_PASSWORD`, `MYSQL_USER_FILE`, `MYSQL_PASSWORD_FILE` -These variables are used by Zabbix web interface to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix web-interface to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `MYSQL_USER` or `MYSQL_USER_FILE`! + +```console +docker run --name some-zabbix-web-nginx-mysql -e DB_SERVER_HOST="some-mysql-server" -v ./.MYSQL_USER:/run/secrets/MYSQL_USER -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -v ./.MYSQL_PASSWORD:/run/secrets/MYSQL_PASSWORD -e MYSQL_PASSWORD_FILE=/var/run/secrets/MYSQL_PASSWORD -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create MYSQL_USER - +printf "zabbix" | docker secret create MYSQL_PASSWORD - +docker run --name some-zabbix-web-nginx-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -e MYSQL_PASSWORD_FILE=/run/secrets/MYSQL_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag +``` + +This method is also applicable for `MYSQL_ROOT_PASSWORD` with `MYSQL_ROOT_PASSWORD_FILE`. + +By default, values for `MYSQL_USER` and `MYSQL_PASSWORD` are `zabbix`, `zabbix`. ### `MYSQL_DATABASE` diff --git a/web-nginx-mysql/centos/README.md b/web-nginx-mysql/centos/README.md index 1edc07b9c..1adcdf2e5 100644 --- a/web-nginx-mysql/centos/README.md +++ b/web-nginx-mysql/centos/README.md @@ -92,9 +92,25 @@ This variable is IP or DNS name of MySQL server. By default, value is 'mysql-ser This variable is port of MySQL server. By default, value is '3306'. -### `MYSQL_USER`, `MYSQL_PASSWORD` +### `MYSQL_USER`, `MYSQL_PASSWORD`, `MYSQL_USER_FILE`, `MYSQL_PASSWORD_FILE` -These variables are used by Zabbix web interface to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix web-interface to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `MYSQL_USER` or `MYSQL_USER_FILE`! + +```console +docker run --name some-zabbix-web-nginx-mysql -e DB_SERVER_HOST="some-mysql-server" -v ./.MYSQL_USER:/run/secrets/MYSQL_USER -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -v ./.MYSQL_PASSWORD:/run/secrets/MYSQL_PASSWORD -e MYSQL_PASSWORD_FILE=/var/run/secrets/MYSQL_PASSWORD -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create MYSQL_USER - +printf "zabbix" | docker secret create MYSQL_PASSWORD - +docker run --name some-zabbix-web-nginx-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -e MYSQL_PASSWORD_FILE=/run/secrets/MYSQL_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag +``` + +This method is also applicable for `MYSQL_ROOT_PASSWORD` with `MYSQL_ROOT_PASSWORD_FILE`. + +By default, values for `MYSQL_USER` and `MYSQL_PASSWORD` are `zabbix`, `zabbix`. ### `MYSQL_DATABASE` diff --git a/web-nginx-mysql/ubuntu/README.md b/web-nginx-mysql/ubuntu/README.md index 1edc07b9c..1adcdf2e5 100644 --- a/web-nginx-mysql/ubuntu/README.md +++ b/web-nginx-mysql/ubuntu/README.md @@ -92,9 +92,25 @@ This variable is IP or DNS name of MySQL server. By default, value is 'mysql-ser This variable is port of MySQL server. By default, value is '3306'. -### `MYSQL_USER`, `MYSQL_PASSWORD` +### `MYSQL_USER`, `MYSQL_PASSWORD`, `MYSQL_USER_FILE`, `MYSQL_PASSWORD_FILE` -These variables are used by Zabbix web interface to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix web-interface to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `MYSQL_USER` or `MYSQL_USER_FILE`! + +```console +docker run --name some-zabbix-web-nginx-mysql -e DB_SERVER_HOST="some-mysql-server" -v ./.MYSQL_USER:/run/secrets/MYSQL_USER -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -v ./.MYSQL_PASSWORD:/run/secrets/MYSQL_PASSWORD -e MYSQL_PASSWORD_FILE=/var/run/secrets/MYSQL_PASSWORD -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create MYSQL_USER - +printf "zabbix" | docker secret create MYSQL_PASSWORD - +docker run --name some-zabbix-web-nginx-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER_FILE=/run/secrets/MYSQL_USER -e MYSQL_PASSWORD_FILE=/run/secrets/MYSQL_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag +``` + +This method is also applicable for `MYSQL_ROOT_PASSWORD` with `MYSQL_ROOT_PASSWORD_FILE`. + +By default, values for `MYSQL_USER` and `MYSQL_PASSWORD` are `zabbix`, `zabbix`. ### `MYSQL_DATABASE` diff --git a/web-nginx-pgsql/alpine/README.md b/web-nginx-pgsql/alpine/README.md index 4899eb280..3deac74b8 100644 --- a/web-nginx-pgsql/alpine/README.md +++ b/web-nginx-pgsql/alpine/README.md @@ -92,9 +92,23 @@ This variable is IP or DNS name of PostgreSQL server. By default, value is 'post This variable is port of PostgreSQL server. By default, value is '5432'. -### `POSTGRES_USER`, `POSTGRES_PASSWORD` +### `POSTGRES_USER`, `POSTGRES_PASSWORD`, `POSTGRES_USER_FILE`, `POSTGRES_PASSWORD_FILE` -These variables are used by Zabbix web interface to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix web interface to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `POSTGRES_USER` or `POSTGRES_USER_FILE`! + +```console +docker run --name some-zabbix-web-nginx-pgsql -e DB_SERVER_HOST="some-postgres-server" -v ./.POSTGRES_USER:/run/secrets/POSTGRES_USER -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -v ./.POSTGRES_PASSWORD:/run/secrets/POSTGRES_PASSWORD -e POSTGRES_PASSWORD_FILE=/var/run/secrets/POSTGRES_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create POSTGRES_USER - +printf "zabbix" | docker secret create POSTGRES_PASSWORD - +docker run --name some-zabbix-web-nginx-pgsql -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -e POSTGRES_PASSWORD_FILE=/run/secrets/POSTGRES_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag +``` + +By default, values for `POSTGRES_USER` and `POSTGRES_PASSWORD` are `zabbix`, `zabbix`. ### `POSTGRES_DB` diff --git a/web-nginx-pgsql/centos/README.md b/web-nginx-pgsql/centos/README.md index 4899eb280..3deac74b8 100644 --- a/web-nginx-pgsql/centos/README.md +++ b/web-nginx-pgsql/centos/README.md @@ -92,9 +92,23 @@ This variable is IP or DNS name of PostgreSQL server. By default, value is 'post This variable is port of PostgreSQL server. By default, value is '5432'. -### `POSTGRES_USER`, `POSTGRES_PASSWORD` +### `POSTGRES_USER`, `POSTGRES_PASSWORD`, `POSTGRES_USER_FILE`, `POSTGRES_PASSWORD_FILE` -These variables are used by Zabbix web interface to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix web interface to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `POSTGRES_USER` or `POSTGRES_USER_FILE`! + +```console +docker run --name some-zabbix-web-nginx-pgsql -e DB_SERVER_HOST="some-postgres-server" -v ./.POSTGRES_USER:/run/secrets/POSTGRES_USER -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -v ./.POSTGRES_PASSWORD:/run/secrets/POSTGRES_PASSWORD -e POSTGRES_PASSWORD_FILE=/var/run/secrets/POSTGRES_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create POSTGRES_USER - +printf "zabbix" | docker secret create POSTGRES_PASSWORD - +docker run --name some-zabbix-web-nginx-pgsql -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -e POSTGRES_PASSWORD_FILE=/run/secrets/POSTGRES_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag +``` + +By default, values for `POSTGRES_USER` and `POSTGRES_PASSWORD` are `zabbix`, `zabbix`. ### `POSTGRES_DB` diff --git a/web-nginx-pgsql/ubuntu/README.md b/web-nginx-pgsql/ubuntu/README.md index 4899eb280..3deac74b8 100644 --- a/web-nginx-pgsql/ubuntu/README.md +++ b/web-nginx-pgsql/ubuntu/README.md @@ -92,9 +92,23 @@ This variable is IP or DNS name of PostgreSQL server. By default, value is 'post This variable is port of PostgreSQL server. By default, value is '5432'. -### `POSTGRES_USER`, `POSTGRES_PASSWORD` +### `POSTGRES_USER`, `POSTGRES_PASSWORD`, `POSTGRES_USER_FILE`, `POSTGRES_PASSWORD_FILE` -These variables are used by Zabbix web interface to connect to Zabbix database. By default, values are `zabbix`, `zabbix`. +These variables are used by Zabbix web interface to connect to Zabbix database. With the `_FILE` variables you can instead provide the path to a file which contains the user / the password instead. Without Docker Swarm or Kubernetes you also have to map the files. Those are exclusive so you can just provide one type - either `POSTGRES_USER` or `POSTGRES_USER_FILE`! + +```console +docker run --name some-zabbix-web-nginx-pgsql -e DB_SERVER_HOST="some-postgres-server" -v ./.POSTGRES_USER:/run/secrets/POSTGRES_USER -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -v ./.POSTGRES_PASSWORD:/run/secrets/POSTGRES_PASSWORD -e POSTGRES_PASSWORD_FILE=/var/run/secrets/POSTGRES_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag +``` + +With Docker Swarm or Kubernetes this works with secrets. That way it is replicated in your cluster! + +```console +printf "zabbix" | docker secret create POSTGRES_USER - +printf "zabbix" | docker secret create POSTGRES_PASSWORD - +docker run --name some-zabbix-web-nginx-pgsql -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER_FILE=/run/secrets/POSTGRES_USER -e POSTGRES_PASSWORD_FILE=/run/secrets/POSTGRES_PASSWORD -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag +``` + +By default, values for `POSTGRES_USER` and `POSTGRES_PASSWORD` are `zabbix`, `zabbix`. ### `POSTGRES_DB`