Skip to content

Commit

Permalink
feat: Add docker-compose for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
AntiD2ta committed Jan 17, 2024
1 parent 08343a3 commit 827af89
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"github.vscode-github-actions"
]
}
},
"features": {
}

// 👇 Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
Expand Down
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: '3'

services:
scraper:
build: .
ports:
- "9600:9600"
restart: unless-stopped
environment:
- FETCH_INTERVAL=60

prometheus:
image: prom/prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
depends_on:
- scraper
restart: unless-stopped
7 changes: 7 additions & 0 deletions prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
global:
scrape_interval: 15s

scrape_configs:
- job_name: 'blob-scraper'
static_configs:
- targets: ['scraper:9600']

0 comments on commit 827af89

Please sign in to comment.