###Cacti Server (CentOS7 + Supervisor)
Docker Image with Cacti server using million12/nginx-php docker image as base. (HTTP2 and HAProxy SSL termination ready.) Image is using external datbase and it's build on PHP 7.0.
To be able to connect to database we would need one to be running first. Easiest way to do that is to use another docker image. For this purpose we will use our million12/mariadb image as our database.
**For more information about million12/MariaDB see our documentation. **
Example:
docker run \
-d \
--name cacti-db \
-p 3306:3306 \
--env="MARIADB_USER=cactiuser" \
--env="MARIADB_PASS=my_password" \
million12/mariadb
Remember to use the same credentials when deploying cacti image.
In this Image you can use environmental variables to connect into external MySQL/MariaDB database.
DB_USER
= database user
DB_PASS
= database password
DB_ADDRESS
= database address (either ip or domain-name)
TIMEZONE
= timezone
Container is built with http/2
support and by default it listens on port 443
.
Make sure you open it on docker run
.
Port 81
is used by default for load balancing (HAProxy
) ssl termination.
Now when we have our database running we can deploy cacti image with appropriate environmental variables set.
Example:
docker run \
-d \
--name cacti \
-p 80:80 \
-p 443:443 \
--env="DB_ADDRESS=database_ip" \
--env="DB_USER=cactiuser" \
--env="DB_PASS=my_password" \
polinux/cacti
To log in into cacti for the first time use credentials admin:admin
. System will ask you to change those when logged in for the firts time.
Access web interface under
Follow the on screen instructions.
Author: Przemyslaw Ozgo (linux@ozgo.info)