zabbix / zabbix-docker

Official Zabbix Dockerfiles
https://www.zabbix.com
GNU Affero General Public License v3.0
2.4k stars 1.38k forks source link

the web page can't open #1562

Closed anyingle closed 1 week ago

anyingle commented 1 week ago

Hi, My deployment cadence is smooth. BUT!

First install zabbix server

docker run --name some-zabbix-server-pgsql -e DB_SERVER_HOST="host.docker.internal" -e POSTGRES_USER="laole" -e POSTGRES_PASSWORD="laole" --init -d zabbix/zabbix-server-pgsql:latest

Result: My pgdb has many table right;

Second isntall web page

docker run --name some-zabbix-web-nginx-pgsql --link some-zabbix-server-pgsql:zabbix-server -e DB_SERVER_HOST="host.docker.internal" -e POSTGRES_USER="laole" -e POSTGRES_PASSWORD="laole" -e ZBX_SERVER_HOST="some-zabbix-server-pgsql" -e PHP_TZ="Asia/Shanghai" -d -p 8080:80 -p 8443:443 zabbix/zabbix-web-nginx-pgsql:latest

This's log, I thinks all ok.

2024-11-13 18:18:01 ** Deploying Zabbix web-interface (Nginx) with PostgreSQL database
2024-11-13 18:18:01 ** Using POSTGRES_USER variable from ENV
2024-11-13 18:18:01 ** Using POSTGRES_PASSWORD variable from ENV
2024-11-13 18:18:01 ********************
2024-11-13 18:18:01 * DB_SERVER_HOST: host.docker.internal
2024-11-13 18:18:01 * DB_SERVER_PORT: 5432
2024-11-13 18:18:01 * DB_SERVER_DBNAME: zabbix
2024-11-13 18:18:01 * DB_SERVER_SCHEMA: public
2024-11-13 18:18:01 ********************
2024-11-13 18:18:01 ** Adding Zabbix virtual host (HTTP)
2024-11-13 18:18:01 **** Impossible to enable SSL support for Nginx. Certificates are missed.
2024-11-13 18:18:01 ** Preparing Zabbix frontend configuration file
2024-11-13 18:18:01 ########################################################
2024-11-13 18:18:01 ** Executing supervisord
2024-11-13 18:18:01 2024-11-13 10:18:01,960 INFO Included extra file "/etc/supervisor/conf.d/supervisord_zabbix.conf" during parsing
2024-11-13 18:18:01 2024-11-13 10:18:01,960 INFO Included extra file "/etc/supervisor/conf.d/supervisord_zabbix.conf" during parsing
2024-11-13 18:18:01 2024-11-13 10:18:01,964 INFO RPC interface 'supervisor' initialized
2024-11-13 18:18:01 2024-11-13 10:18:01,964 INFO RPC interface 'supervisor' initialized
2024-11-13 18:18:01 2024-11-13 10:18:01,964 INFO supervisord started with pid 1
2024-11-13 18:18:01 2024-11-13 10:18:01,964 INFO supervisord started with pid 1
2024-11-13 18:18:02 2024-11-13 10:18:02,968 INFO spawned: 'nginx' with pid 17
2024-11-13 18:18:02 2024-11-13 10:18:02,968 INFO spawned: 'nginx' with pid 17
2024-11-13 18:18:02 2024-11-13 10:18:02,970 INFO spawned: 'php-fpm83' with pid 18
2024-11-13 18:18:02 2024-11-13 10:18:02,970 INFO spawned: 'php-fpm83' with pid 18
2024-11-13 18:18:02 [13-Nov-2024 10:18:02] NOTICE: fpm is running, pid 18
2024-11-13 18:18:02 [13-Nov-2024 10:18:02] NOTICE: ready to handle connections
2024-11-13 18:18:04 2024-11-13 10:18:04,996 INFO success: nginx entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)
2024-11-13 18:18:04 2024-11-13 10:18:04,996 INFO success: nginx entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)
2024-11-13 18:18:04 2024-11-13 10:18:04,996 INFO success: php-fpm83 entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)
2024-11-13 18:18:04 2024-11-13 10:18:04,996 INFO success: php-fpm83 entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)

Then open the page in my Chrome http://localhost:8080 or http://localhost:443 nothing But when I open http://localhost:8080 or http://localhost:443 on the Chrome, no dark page appears.

Please Help Me Thanks.

dotneft commented 1 week ago

The first port in publish is host port, not port in docker container:

-p 80:8080