Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:

- name: Prepare
run: |
docker build --tag ghcr.io/gaming-platform/docker-prometheus:2.45 .
docker build --tag ghcr.io/gaming-platform/docker-prometheus:3.7 .

- name: Deploy
if: github.ref == 'refs/heads/main'
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
docker push ghcr.io/gaming-platform/docker-prometheus:2.45
docker push ghcr.io/gaming-platform/docker-prometheus:3.7
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM prom/prometheus:v2.45.0
FROM prom/prometheus:v3.7.3

# Needed for accessing docker.sock.
# Just a workaround here, better handled via file permissions in a production system.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ This repository provides a `Prometheus` image for the
## Usage

__Name__
`ghcr.io/gaming-platform/docker-mysql:2.45`
`ghcr.io/gaming-platform/docker-prometheus:3.7`

__Configuration__
For `docker` service discovery, the container can be configured as follows:

```yaml
prometheus:
image: ghcr.io/gaming-platform/docker-prometheus:2.45
image: ghcr.io/gaming-platform/docker-prometheus:3.7
command: --config.file=/etc/prometheus/docker.yml
volumes:
- /var/run/docker.sock:/var/run/docker.sock
Expand All @@ -28,7 +28,7 @@ For `dockerswarm` service discovery, the container can be configured as follows:

```yaml
prometheus:
image: ghcr.io/gaming-platform/docker-prometheus:2.45
image: ghcr.io/gaming-platform/docker-prometheus:3.7
command: --config.file=/etc/prometheus/dockerswarm.yml
volumes:
- /var/run/docker.sock:/var/run/docker.sock
Expand Down