Skip to content

Commit

Permalink
fix docker images names
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed Oct 30, 2024
1 parent 4fa0eba commit 1e6e6a2
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions docs/tutorial/docker_installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,24 @@ The simplest real-life pgwatch setup should look something like that:
GitHub *Releases* page or use the public API with something like
that:

curl -so- https://api.github.com/repos/cybertec-postgresql/pgwatch/releases/latest | jq .tag_name | grep -oE '[0-9\.]+'
```bash
curl -so- https://api.github.com/repos/cybertec-postgresql/pgwatch/releases/latest | jq .tag_name | grep -oE '[0-9\.]+'
```

1. Pull the image:

docker pull cybertec/pgwatch:X.Y.Z
```bash
docker pull cybertecpostgresql/pgwatch-demo:X.Y.Z
```

1. Run the Docker image, exposing minimally the Grafana port served on
port 3000 internally. In a relatively secure environment you'd
usually also include the administrative web UI served on port 8080:

docker run -d --restart=unless-stopped -p 3000:3000 -p 8080:8080 \
--name pw3 cybertec/pgwatch:X.Y.Z
```bash
docker run -d --restart=unless-stopped -p 3000:3000 -p 8080:8080 \
--name pw3 cybertecpostgresql/pgwatch-demo:X.Y.Z
```

Note that we're setting the container to be automatically restarted
in case of a reboot/crash - which is highly recommended if not using
Expand Down Expand Up @@ -60,7 +66,7 @@ for v in pg grafana pw3 ; do docker volume create $v ; done
docker run -d --restart=unless-stopped --name pw3 \
-p 3000:3000 -p 8081:8081 -p 127.0.0.1:5432:5432 -p 192.168.1.XYZ:8080:8080 \
-v pg:/var/lib/postgresql -v grafana:/var/lib/grafana -v pw3:/pgwatch/persistent-config \
cybertec/pgwatch:X.Y.Z
cybertecpostgresql/pgwatch-demo:X.Y.Z
```

Note that in non-trusted environments it's a good idea to specify more
Expand All @@ -74,16 +80,16 @@ supported Docker environment variables see the [ENV_VARIABLES.md](../reference/e
## Available Docker images

Following images are regularly pushed to [Docker
Hub](https://hub.docker.com/u/cybertec):
Hub](https://hub.docker.com/u/cybertecpostgresql):

*cybertec/pgwatch-demo*
*cybertecpostgresql/pgwatch-demo*

The original pgwatch “batteries-included” image with PostgreSQL measurements
storage. Just insert connect infos to your database via the admin Web UI (or
directly into the Config DB) and then turn to the pre-defined Grafana
dashboards to analyze DB health and performance.

*cybertec/pgwatch*
*cybertecpostgresql/pgwatch*

A light-weight image containing only the metrics collection daemon /
agent, that can be integrated into the monitoring setup over
Expand Down

0 comments on commit 1e6e6a2

Please sign in to comment.