For this installation, we need the following prerequisites:
Now, let's start the installation procedures:
mkdir docker -p && mkdir docker/uptimekuma -p && cd docker/uptimekuma && mkdir config
Use the below command to list open ports and if you are using port 3001 you can change that in the below script:
sudo netstat -tulpn | grep LISTEN
nano docker-compose.yml
Now you can paste the below script via the NANO editor, save and exit
version: '3'
volumes:
uptimekuma-data:
driver: local
services:
uptimekuma:
image: louislam/uptime-kuma:latest
container_name: uptimekuma
ports:
- "3001:3001" #if you are using the 3001 port you can change the left one as you wish
volumes:
- /root/docker/uptimekuma/config:/app/data
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
Now you can start the container by below command:
docker-compose up -d
Finally, if you want to know how can configure that via its web console, you can watch my video related to this subject.
Have fun…