Robin Thoni d118c9d38b Removed old Dockerfile | 3 år sedan | |
---|---|---|
.env | 3 år sedan | |
.gitignore | 7 år sedan | |
README.md | 3 år sedan | |
docker-compose.yml | 3 år sedan |
Admin:zabbix
POSTGRES_PASSWORD
ALL_TZ
to the current timezoneALL_RESTART_POLICY
to unless-stopped
openssl genrsa -passout env:CA_PASSWD -aes256 -out zabbix-ca.key 4096
openssl req -x509 -new -key zabbix-ca.key -sha256 -days 36500 -out zabbix-ca.crt -passin env:CA_PASSWD -subj “/CN=zabbix-ca”
HOST=zabbix-host.domain.tld
openssl req -new -newkey rsa:4096 -nodes -keyout “${HOST}.key” -out “${HOST}.csr” -subj “/CN=${HOST}”
openssl x509 -req -CA zabbix-ca.crt -CAkey zabbix-ca.key -CAcreateserial -days 36500 -sha256 -passin env:CA_PASSWD -in “${HOST}.csr” -out “${HOST}.crt”
rm “${HOST}.csr”