Zabbix Documentation 4.0

3.04.04.4 (current)| In development:5.0 (devel)| Unsupported:1.82.02.22.43.23.44.2Guidelines

User Tools

Site Tools


manual:installation:containers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
manual:installation:containers [2018/06/07 12:35]
natalja.cernohajeva Whole page update with missing information (copied from 3.0 and edited for 4.0))
manual:installation:containers [2020/02/28 10:15] (current)
marinagen Ubuntu version in compose files description updated
Line 10: Line 10:
  
 Zabbix components are provided on Ubuntu, Alpine Linux and CentOS base images: Zabbix components are provided on Ubuntu, Alpine Linux and CentOS base images:
 +
 |Image|Version| |Image|Version|
-|[[https://​hub.docker.com/​_/​alpine/​|alpine]]|3.4+|[[https://​hub.docker.com/​_/​alpine/​|alpine]]|3.11
-|[[https://​hub.docker.com/​_/​ubuntu/​|ubuntu]]|trusty+|[[https://​hub.docker.com/​_/​ubuntu/​|ubuntu]]|bionic
-|[[https://​hub.docker.com/​_/​centos/​|centos]]|latest|+|[[https://​hub.docker.com/​_/​centos/​|centos]]|7| 
  
 All images are configured to rebuild latest images if base images are updated. All images are configured to rebuild latest images if base images are updated.
  
-<​note>​Zabbix agent, Zabbix proxy, Zabbix server and Zabbix appliance images are based on Alpine Linux version 3.4, all other images are based on Alpine Linux 3.7.</​note>​ 
  
 === Docker file sources === === Docker file sources ===
Line 72: Line 73:
 |''​POSTGRES_PASSWORD'' ​ |Server\\ Web interface |PostgreSQL database password.\\ By default, value is '​zabbix'​. | |''​POSTGRES_PASSWORD'' ​ |Server\\ Web interface |PostgreSQL database password.\\ By default, value is '​zabbix'​. |
 |''​POSTGRES_DB'' ​ |Server\\ Web interface |Zabbix database name.\\ By default, value is '​zabbix'​ for Zabbix server and '​zabbix_proxy'​ for Zabbix proxy. | |''​POSTGRES_DB'' ​ |Server\\ Web interface |Zabbix database name.\\ By default, value is '​zabbix'​ for Zabbix server and '​zabbix_proxy'​ for Zabbix proxy. |
-|''​TZ'' ​ |Web-interface |Timezone in PHP format. Full list of supported timezones are available on [[http://​php.net/​manual/​en/​timezones.php|php.net]].\\ By default, value is '​Europe/​Riga'​. |+|''​PHP_TZ'' ​ |Web-interface |Timezone in PHP format. Full list of supported timezones are available on [[http://​php.net/​manual/​en/​timezones.php|php.net]].\\ By default, value is '​Europe/​Riga'​. |
 |''​ZBX_SERVER_NAME'' ​ |Web interface |Visible Zabbix installation name in right top corner of the web interface.\\ By default, value is '​Zabbix Docker'​ | |''​ZBX_SERVER_NAME'' ​ |Web interface |Visible Zabbix installation name in right top corner of the web interface.\\ By default, value is '​Zabbix Docker'​ |
 |''​ZBX_JAVAGATEWAY_ENABLE'' ​ | Server\\ Proxy |Enables communication with Zabbix Java gateway to collect Java related checks.\\ By default, value is "​false"​ | |''​ZBX_JAVAGATEWAY_ENABLE'' ​ | Server\\ Proxy |Enables communication with Zabbix Java gateway to collect Java related checks.\\ By default, value is "​false"​ |
Line 124: Line 125:
       -p 10051:10051 \       -p 10051:10051 \
       -p 80:80 \       -p 80:80 \
 +      --restart unless-stopped \
       -d zabbix/​zabbix-appliance:​latest       -d zabbix/​zabbix-appliance:​latest
 </​code>​ </​code>​
Line 141: Line 143:
       -e MYSQL_PASSWORD="​zabbix_pwd"​ \       -e MYSQL_PASSWORD="​zabbix_pwd"​ \
       -e MYSQL_ROOT_PASSWORD="​root_pwd"​ \       -e MYSQL_ROOT_PASSWORD="​root_pwd"​ \
 +      --restart unless-stopped \
       -d mysql:5.7 \       -d mysql:5.7 \
       --character-set-server=utf8 --collation-server=utf8_bin       --character-set-server=utf8 --collation-server=utf8_bin
Line 148: Line 151:
 <​code>​ <​code>​
 # docker run --name zabbix-java-gateway -t \ # docker run --name zabbix-java-gateway -t \
 +      --restart unless-stopped \
       -d zabbix/​zabbix-java-gateway:​latest       -d zabbix/​zabbix-java-gateway:​latest
 </​code>​ </​code>​
Line 163: Line 167:
       --link zabbix-java-gateway:​zabbix-java-gateway \       --link zabbix-java-gateway:​zabbix-java-gateway \
       -p 10051:10051 \       -p 10051:10051 \
 +      --restart unless-stopped \
       -d zabbix/​zabbix-server-mysql:​latest       -d zabbix/​zabbix-server-mysql:​latest
 </​code>​ </​code>​
Line 179: Line 184:
       --link zabbix-server-mysql:​zabbix-server \       --link zabbix-server-mysql:​zabbix-server \
       -p 80:80 \       -p 80:80 \
 +      --restart unless-stopped \
       -d zabbix/​zabbix-web-nginx-mysql:​latest       -d zabbix/​zabbix-web-nginx-mysql:​latest
 </​code>​ </​code>​
Line 194: Line 200:
       -e POSTGRES_PASSWORD="​zabbix"​ \       -e POSTGRES_PASSWORD="​zabbix"​ \
       -e POSTGRES_DB="​zabbix_pwd"​ \       -e POSTGRES_DB="​zabbix_pwd"​ \
 +      --restart unless-stopped \
       -d postgres:​latest       -d postgres:​latest
 </​code>​ </​code>​
Line 203: Line 210:
       -v /​var/​lib/​zabbix/​mibs:/​usr/​share/​snmp/​mibs:​ro \       -v /​var/​lib/​zabbix/​mibs:/​usr/​share/​snmp/​mibs:​ro \
       -p 162:162/udp \       -p 162:162/udp \
 +      --restart unless-stopped \
       -d zabbix/​zabbix-snmptraps:​latest       -d zabbix/​zabbix-snmptraps:​latest
 </​code>​ </​code>​
Line 219: Line 227:
       -p 10051:10051 \       -p 10051:10051 \
       --volumes-from zabbix-snmptraps \       --volumes-from zabbix-snmptraps \
 +      --restart unless-stopped \
       -d zabbix/​zabbix-server-pgsql:​latest       -d zabbix/​zabbix-server-pgsql:​latest
 </​code>​ </​code>​
Line 235: Line 244:
       -p 443:443 \       -p 443:443 \
       -v /​etc/​ssl/​nginx:/​etc/​ssl/​nginx:​ro \       -v /​etc/​ssl/​nginx:/​etc/​ssl/​nginx:​ro \
 +      --restart unless-stopped \
       -d zabbix/​zabbix-web-nginx-pgsql:​latest       -d zabbix/​zabbix-web-nginx-pgsql:​latest
 </​code>​ </​code>​
Line 254: Line 264:
 |''​docker-compose_v3_centos_pgsql_latest.yaml''​|The compose file runs the latest version of Zabbix 4.0 components on CentOS 7 with PostgreSQL database support.| |''​docker-compose_v3_centos_pgsql_latest.yaml''​|The compose file runs the latest version of Zabbix 4.0 components on CentOS 7 with PostgreSQL database support.|
 |''​docker-compose_v3_centos_pgsql_local.yaml''​|The compose file locally builds the latest version of Zabbix 4.0 and runs Zabbix components on CentOS 7 with PostgreSQL database support.| |''​docker-compose_v3_centos_pgsql_local.yaml''​|The compose file locally builds the latest version of Zabbix 4.0 and runs Zabbix components on CentOS 7 with PostgreSQL database support.|
-|''​docker-compose_v3_ubuntu_mysql_latest.yaml''​|The compose file runs the latest version of Zabbix 4.0 components on Ubuntu ​14.04 with MySQL database support.| +|''​docker-compose_v3_ubuntu_mysql_latest.yaml''​|The compose file runs the latest version of Zabbix 4.0 components on Ubuntu ​18.04 with MySQL database support.| 
-|''​docker-compose_v3_ubuntu_mysql_local.yaml''​|The compose file locally builds the latest version of Zabbix 4.0 and runs Zabbix components on Ubuntu ​14.04 with MySQL database support.| +|''​docker-compose_v3_ubuntu_mysql_local.yaml''​|The compose file locally builds the latest version of Zabbix 4.0 and runs Zabbix components on Ubuntu ​18.04 with MySQL database support.| 
-|''​docker-compose_v3_ubuntu_pgsql_latest.yaml''​|The compose file runs the latest version of Zabbix 4.0 components on Ubuntu ​14.04 with PostgreSQL database support.| +|''​docker-compose_v3_ubuntu_pgsql_latest.yaml''​|The compose file runs the latest version of Zabbix 4.0 components on Ubuntu ​18.04 with PostgreSQL database support.| 
-|''​docker-compose_v3_ubuntu_pgsql_local.yaml''​|The compose file locally builds the latest version of Zabbix 4.0 and runs Zabbix components on Ubuntu ​14.04 with PostgreSQL database support.|+|''​docker-compose_v3_ubuntu_pgsql_local.yaml''​|The compose file locally builds the latest version of Zabbix 4.0 and runs Zabbix components on Ubuntu ​18.04 with PostgreSQL database support.|
  
 <note important>​Available Docker compose files support both versions 2 and 3 of Docker Compose.</​note>​ <note important>​Available Docker compose files support both versions 2 and 3 of Docker Compose.</​note>​
Line 289: Line 299:
 </​code>​ </​code>​
  
-The command will download base image Ubuntu ​14.04, then build Zabbix 4.0 components locally and run them in detach mode.+The command will download base image Ubuntu ​18.04, then build Zabbix 4.0 components locally and run them in detach mode.