louislam / uptime-kuma

A fancy self-hosted monitoring tool

Home Page:https://uptime.kuma.pet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is the proper way to migrate from PM2 to Docker?

waitwhatActo opened this issue Β· comments

commented

⚠️ Please verify that this question has NOT been raised before.

  • I checked and didn't find similar issue

πŸ›‘οΈ Security Policy

πŸ“ Describe your problem

I am trying to migrate from PM2 to Docker, whilst keeping all my data, settings, etc. Is there a way to do it, and if so, how should I go about it?

πŸ“ Error Message(s) or Log

No response

🐻 Uptime-Kuma Version

1.23.1

πŸ’» Operating System and Arch

Ubuntu 22.04 x86_64

🌐 Browser

Microsoft Edge 123.0.2420.65

πŸ–₯️ Deployment Environment

  • Runtime: Node.js 20.12.2
  • Database: Unsure, whatever the Node.js installation methods uses by default
  • Filesystem used to store the database on: Ubuntu on an SSD
  • number of monitors: 62
  • Shut down PM2
  • make a backup of the data folder
  • copy data to the docker containers storage (bind to a local volume instead of a named volume instead for simpler transition)
  • start docker container with said data

What is likely (have not tested what would happen) important is that you are not using the PM2 specific monitor tailscale.