# Self-host Statping-ng

> A status page and uptime monitor for sites, APIs and TCP services with alerts.

- Page: https://levelrail.com/templates/statping-ng/
- JSON: https://levelrail.com/templates/statping-ng.json
- Category: Monitoring
- Licence: GPL-3.0-only (Copyleft license)
- Source: https://github.com/statping-ng/statping-ng
- Upstream docs: https://github.com/statping-ng/statping-ng

## Requirements
- Memory: about 128 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: v0.90.78

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| statping-ng | adamboutcher/statping-ng | v0.90.78 | 8080 | app -> /app |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| statping-ng | ADMIN_PASSWORD | generated |
| statping-ng | ADMIN_USER | preset |
| statping-ng | DB_CONN | preset |
| statping-ng | DESCRIPTION | preset |
| statping-ng | NAME | preset |

## Deploy

### CLI

```bash
levelrail-cli templates install statping-ng --name my-statping-ng
```

Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain statping-ng=app.example.com.

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  https://levelrail.example.com/api/v1/service-templates/statping-ng/install \
  -d '{
    "name": "my-statping-ng"
  }'
```

Create a token in the dashboard first. Name, env and domains are the request fields.

## First run
1. Sign in as admin with the generated password.

## Questions

### Can I deploy Statping-ng on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id statping-ng for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image adamboutcher/statping-ng:v0.90.78 is what you deploy there.

Self-host Statping-ng, Statping-ng docker compose file, deploy Statping-ng on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
