Zabbix Server em Docker Compose

Zabbix Server em Docker Compose

Segue a versão do yaml do docker compose para Zabbix  Server Mysql

 

version: '3.3'
services:
  mysql-server-for-zabbix:
    image: mysql:8.0-oracle
    restart: unless-stopped
    environment:
      - MYSQL_DATABASE=zabbix
      - MYSQL_USER=zabbix
      - MYSQL_PASSWORD=N4d345fdgsdraU
      - MYSQL_ROOT_PASSWORD=N4d345fdgsdraU
    volumes:
      - ./dbdata:/var/lib/mysql
    networks:
      - zabbix-net-ok

  zabbix-server-mysql:
    image: zabbix/zabbix-server-mysql
    depends_on:
     - mysql-server-for-zabbix
    restart: unless-stopped
    environment:
      - DB_SERVER_HOST=zabbix-mysql-server
      - MYSQL_DATABASE=zabbix
      - MYSQL_USER=zabbix
      - MYSQL_PASSWORD=N4d345fdgsdraU
      - MYSQL_ROOT_PASSWORD=N4d345fdgsdraU
      - ZBX_CACHESIZE=1024M
    volumes:
      - ./zabbix/zabbix_agentd.d:/etc/zabbix/zabbix_agentd.d
    ports:
      - "10051:10051"
    networks:
      - zabbix-net-ok

  zabbix-web-nginx-mysql:
    image: zabbix/zabbix-web-nginx-mysql
    restart: unless-stopped
    environment:
      - ZBX_SERVER_HOST=zabbix-server-mysql
      - DB_SERVER_HOST=zabbix-mysql-server
      - MYSQL_DATABASE=zabbix
      - MYSQL_USER=zabbix
      - MYSQL_PASSWORD=N4d345fdgsdraU
      - MYSQL_ROOT_PASSWORD=N4d345fdgsdraU
    ports:
      - '8085:8080'
    networks:
      - zabbix-net-ok

networks:
  zabbix-net-ok:

 

Sobre o Autor

Diego Elcain administrator