How to install zabbix in docker

0 votes

Hi Guys,

I have configured docker-engine in the Linux system. I want to launch one container for Zabbix. How can I do that?

Aug 24, 2020 in Docker by akhtar
• 38,130 points
984 views

1 answer to this question.

0 votes

Hi@akhtar,

In your Zabbix server, create a folder with this docker configuration file as shown below.

docker-compose.yml
version: ‘3’
services:
zabbix-server:
restart: always
image: zabbix/zabbix-server-mysql:latest
ports:
— “10050:10050”
— “10051:10051”
environment:
DB_SERVER_HOST: YOUR_IP
MYSQL_USER: MYSQL_USER
MYSQL_PASSWORD: MYSQL_PASS
zabbix-web-nginx-mysql:
restart: always
image: zabbix/zabbix-web-nginx-mysql:latest
ports:
— “80:80”
links:
— zabbix-server:zabbix-server
environment:
DB_SERVER_HOST: YOUR_IP
MYSQL_USER: MYSQL_USER
MYSQL_PASSWORD: MYSQL_PASS
ZBX_SERVER_HOST: ZABBIX_SERVER_HOST
PHP_TZ: YOUR_PHP_TIME_ZONE

After that, run the following command to create and start the container.

$ docker-compose up -d

answered Aug 24, 2020 by MD
• 94,990 points

Related Questions In Docker

0 votes
1 answer

How to install telnet in Docker for Windows 10?

If you are trying to telnet in ...READ MORE

answered Aug 27, 2018 in Docker by Tyrion anex
• 8,640 points
1,542 views
0 votes
1 answer

How to store data in external drive with Docker Postgres:9.3 image?

Apparently, the problem would be in your ...READ MORE

answered Jul 12, 2018 in Docker by Kalgi
• 2,680 points
968 views
0 votes
1 answer

How to deal with persistent storage (e.g. databases) in docker

For Docker 1.9.0 and above, Use volume API docker ...READ MORE

answered Jul 18, 2018 in Docker by Kalgi
• 2,680 points
192 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,080 points
984 views
+1 vote
1 answer

How to install packages in a Docker container?

Hi@akhtar, To install packages in a docker container, ...READ MORE

answered Apr 15, 2020 in Docker by MD
• 94,990 points
16,006 views
+2 votes
12 answers

How to run multiple commands in docker at once?

Hi, You need to use one shell to ...READ MORE

answered Dec 9, 2020 in Docker by MD
• 94,990 points
109,270 views