Sign inSign up

jaysliwinski/cacti

By jaysliwinski

Updated 5 days ago

Containerized Cacti 1.x monitoring application on a Rocky Linux base layer and MariaDB 11.x

Image
Networking
Monitoring & observability
0

40

jaysliwinski/cacti repository overview

Cacti (latest) on Rocky Linux

Docker image built on Rocky Linux that pulls down the most current Cacti Release at runtime.

This Docker image based on one originally built and released by Sean Cline (smcline06/cacti), but which has not been updated since May 2021.

Much of the the underlying scripting is Sean's, but updated for new packages and more recent Rocky Linux base layer.

Docker Compose File

Be sure to replace the values for the following fields before deployment:

  • domainname
  • DB_USER
  • DB_PASS
  • DB_ROOT_PASS
  • MYSQL_ROOT_PASSWORD
services:
  cacti:
    image: "jaysliwinski/cacti:rocky9.8"
    container_name: cacti
    domainname: ## YOUR DOMAIN NAME ##
    hostname: cacti
    ports:
      - "8080:80"
      - "8443:443"
    environment:
      - DB_NAME=cacti_master
      - DB_USER=## REPLACE WITH CACTI DB USER NAME ##
      - DB_PASS=## REPLACE WITH CACTI DB USER PASSWORD ##
      - DB_HOST=db
      - DB_PORT=3306
      - DB_ROOT_PASS=## REPLACE WITH DB ROOT USER PASSWORD ##
      - INITIALIZE_DB=1
      - TZ=Etc/UTC
    volumes:
      - cacti-data:/cacti
      - cacti-spine:/spine
      - cacti-backups:/backups
    links:
      - db


  db:
    #image: "mariadb:10.3"
    image: "mariadb:11.8.9-ubi9"
    container_name: cacti_db
    domainname: ## YOUR DOMAIN NAME ##
    hostname: db
    ports:
      - "3306:3306"
    command:
      - mysqld
      - --character-set-server=utf8mb4
      - --collation-server=utf8mb4_unicode_ci
      - --max_connections=200
      - --max_heap_table_size=128M
      - --max_allowed_packet=32M
      - --tmp_table_size=128M
      - --join_buffer_size=128M
      - --innodb_buffer_pool_size=1G
      - --innodb_doublewrite=ON
      - --innodb_flush_log_at_timeout=3
      - --innodb_read_io_threads=32
      - --innodb_write_io_threads=16
      - --innodb_buffer_pool_instances=9
      - --innodb_file_format=Barracuda
      - --innodb_large_prefix=1
      - --innodb_io_capacity=5000
      - --innodb_io_capacity_max=10000
    environment:
      - MYSQL_ROOT_PASSWORD=## REPLACE WITH DB ROOT USER PASSWORD ##
      - TZ=Etc/UTC
    volumes:
      - cacti-db:/var/lib/mysql


volumes:
  cacti-db:
  cacti-data:
  cacti-spine:
  cacti-backups:

Tag summary

Content type

Image

Digest

sha256:18859c1a1

Size

337.9 MB

Last updated

5 days ago

docker pull jaysliwinski/cacti:rocky9.8