What is Cachet?
Cachet is a beautiful and powerful open source status page system. -https://github.com/CachetHQ/Cachet
Installing Docker
- Log into the Linux based device
- Run the following commands in the terminal
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running Cachet
- Now that Docker is installed, run the following commands to setup the Cachet container and run it
# create working directories
mkdir /home/$USER/docker/postresql -p
# set owner of working directories
sudo chown "$USER":"$USER" /home/"$USER"/docker -R
# run the postgesql docker container
docker run -d --name postgres -e POSTGRES_USER=cachet -e POSTGRES_PASSWORD=Cach3t -e POSTGRES_DB=cachet -v /home/$USER/docker/postresql:/var/lib/postgresql/data --restart=unless-stopped postgres:latest
# run the cachet docker container
docker run -d --name cachet --link postgres -e DB_DRIVER=pgsql -e DB_HOST=postgres -e DB_DATABASE=cachet -e DB_USERNAME=cachet -e DB_PASSWORD=Cach3t -e APP_KEY=base64:YAWZR/UkMlVTBWEET95ZGiL7g13mhNwaKF4hzYmo9oc= -e APP_ENV=production -p 8000:8000 --restart=unless-stopped cachethq/docker:latest - Open a web browser and navigate to http://DNSorIP:8000/setup
- The Cachet setup screen should be displayed
- Set the Cache, Queue and Session drivers to Database
- Optionally setup the SMTP host and email address > Click Next
- Enter a site name, set the timezone and language > Click Next
- Create an administrator account by entering a username, email address and password > Click Complete Setup
- Click the Go to dashboard button
- Login with the administator account created earlier
- Welcome to Cachet
- To view the status page navigate to http://DNSorIP:8000
Documentation: https://hub.docker.com/r/cachethq/docker