Ad Widget
Collapse
Database details in docker-server
Collapse
This topic has been answered.
X
X
-
Answer selected by quackduck at Yesterday, 16:00.
If you upgrade, you need to have mentioned config parameter set in DB. You can do it manually from console and then run your new server first time (which will do upgrade tasks in DB also), after that you can restart your db container and that temporarily set config option will be disabled again. OR .. you can enable that option through DB config file, which I would assume is not overwritten with container restart and option will be kept until you decide to disable it..
- Selected Answer
-
If you install zabbix with containers you need to have to install databases - either in containers or separate servers and run database scripts.
I would recommend using composed installation from same page.
composed installation will start database as well and will create zabbix database structure by running init containers
You just need to set DB password in these files.
./env_vars/.POSTGRES_USER
./env_vars/.POSTGRES_PASSWORD
I however prefer not touch any file in repo and specify them in startup script, created outside cloned repo
Just example
Code:#!/bin/bash export ZABBIX_WEB_NGINX_HTTP_PORT=8080 export ZABBIX_WEB_NGINX_HTTPS_PORT=8443 export POSTGRES_USER=johndoe export POSTGRES_PASSWORD=pasword export ZABBIX_ALPINE_IMAGE_TAG="alpine-7.0.21" docker compose -f ./zabbix-docker/docker-compose_v3_alpine_pgsql_latest.yaml up -d --force-recreate
Comment
-
If you upgrade, you need to have mentioned config parameter set in DB. You can do it manually from console and then run your new server first time (which will do upgrade tasks in DB also), after that you can restart your db container and that temporarily set config option will be disabled again. OR .. you can enable that option through DB config file, which I would assume is not overwritten with container restart and option will be kept until you decide to disable it..
- Selected Answer
Comment
Comment