📜  uptime kuma docker compose (1)

📅  最后修改于: 2023-12-03 14:48:14.022000             🧑  作者: Mango

Uptime Kuma Docker Compose

Uptime Kuma is a modern, powerful, and easy-to-use uptime monitoring solution. With Uptime Kuma, you can monitor your website, APIs, and other online services to ensure that they are always up and running.

Docker Compose is a tool for defining and running multi-container Docker applications. With Docker Compose, you can configure and run your Uptime Kuma instance with just a few lines of YAML code.

Prerequisites

Before getting started with Uptime Kuma and Docker Compose, you'll need:

  • Docker installed on your machine
  • Docker Compose installed on your machine
  • A basic understanding of Docker and Docker Compose
Installation

To install Uptime Kuma using Docker Compose, follow these steps:

  1. Create a new directory for your Uptime Kuma installation:
mkdir uptime-kuma
cd uptime-kuma
  1. Create a new file called docker-compose.yml in your uptime-kuma directory:
touch docker-compose.yml
  1. Edit the docker-compose.yml file and add the following code:
version: "3"

services:
  app:
    image: uptimekuma/uptime-kuma:latest
    ports:
      - "3000:3000"
    environment:
      - MONGODB_URI=mongodb://mongodb:27017/uptime-kuma
    depends_on:
      - mongodb
  mongodb:
    image: mongo:4.4
    volumes:
      - mongodb-data:/data/db

volumes:
  mongodb-data:
  1. Start the Uptime Kuma instance using Docker Compose:
docker-compose up -d
  1. Access Uptime Kuma by opening your web browser and navigating to http://localhost:3000.
Conclusion

With Docker Compose, you can easily set up and run Uptime Kuma for all your uptime monitoring needs. By using this powerful tool, you can ensure that your websites, APIs, and other online services are always up and running, and that you're notified whenever something goes wrong.

Markdown Code:

# Uptime Kuma Docker Compose

Uptime Kuma is a modern, powerful, and easy-to-use uptime monitoring solution. With Uptime Kuma, you can monitor your website, APIs, and other online services to ensure that they are always up and running.

Docker Compose is a tool for defining and running multi-container Docker applications. With Docker Compose, you can configure and run your Uptime Kuma instance with just a few lines of YAML code.

## Prerequisites

Before getting started with Uptime Kuma and Docker Compose, you'll need:

- Docker installed on your machine
- Docker Compose installed on your machine
- A basic understanding of Docker and Docker Compose

## Installation

To install Uptime Kuma using Docker Compose, follow these steps:

1. Create a new directory for your Uptime Kuma installation:

```bash
mkdir uptime-kuma
cd uptime-kuma
  1. Create a new file called docker-compose.yml in your uptime-kuma directory:
touch docker-compose.yml
  1. Edit the docker-compose.yml file and add the following code:
version: "3"

services:
  app:
    image: uptimekuma/uptime-kuma:latest
    ports:
      - "3000:3000"
    environment:
      - MONGODB_URI=mongodb://mongodb:27017/uptime-kuma
    depends_on:
      - mongodb
  mongodb:
    image: mongo:4.4
    volumes:
      - mongodb-data:/data/db

volumes:
  mongodb-data:
  1. Start the Uptime Kuma instance using Docker Compose:
docker-compose up -d
  1. Access Uptime Kuma by opening your web browser and navigating to http://localhost:3000.
Conclusion

With Docker Compose, you can easily set up and run Uptime Kuma for all your uptime monitoring needs. By using this powerful tool, you can ensure that your websites, APIs, and other online services are always up and running, and that you're notified whenever something goes wrong.