This guide also works for other CentOS~
- Oracle Cloud Infrastructure (OCI) account
- Basic knowledge of OCI
- Tool to connect to OCI instance (e.g. PuTTY)
-
Create a new OCI instance
Please feel free to adjust the setup to your needs.
The instance needs to be reachable from the internet.
You have to create a new virtual cloud network (VCN) with a public subnet and a public IP address if you don't have one yet. Just like the following:
You need to create a new SSH key pair or use an existing one. You can find a guide here.
In this guide I will use the key OCI created. Please don't forget to download the private key and save it in a safe place. You will need it later.
After checking everything, click the "Create" button and wait for the instance to be created.
-
Setup Virtual Cloud Network(VCN) Security List
You need to add the following ingress rules to the security list of the VCN you created.
Stateless Source Type Source CIDR IP Protocol Source Port Range Destination Port Range Description No CIDR 0.0.0.0/0 TCP All 22 Allow SSH Connections No CIDR 0.0.0.0/0 TCP All 3001 Uptime Kuma Default Port -
Connect to the instance
You can use any SSH client you like. I will use CMD in this guide.
ssh -i <path-to-private-key> opc@<public-ip-address>
Update the instance and install Docker.
$ sudo yum update -y
Install Docker
$ sudo yum install -y yum-utils $ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo $ sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Start Docker
$ sudo systemctl start docker
Create a new directory for Uptime Kuma
$ mkdir uptime-kuma
Cd into the directory
$ cd uptime-kuma
Setup
docker-compose.yml
$ nano docker-compose.yml
Copy and paste the https://github.com/louislam/uptime-kuma/blob/master/docker/docker-compose.yml into the file.
Exit and save the file by pressing
Ctrl + X
and thenY
.Start Uptime Kuma
$ docker compose up -d
The first time you start Uptime Kuma, it will take a while to download the images. After that, you can access Uptime Kuma via
http://<public-ip-address>:3001
.
- Reset Uptime Kmuma Password
$ docker exec -it uptime-kuma npm run reset-password