Skip to content

Commit

Permalink
add dockercompose
Browse files Browse the repository at this point in the history
  • Loading branch information
hoptical committed Feb 17, 2024
1 parent 753303d commit e7e8809
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ __pycache__
.pytest_cache
.coverage
.ruff_cache
output.json
output.json
data/
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12
FROM python:3.12-alpine

WORKDIR /code

Expand Down
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "3"
services:
reporter:
container_name: prom_reporter
build: .
volumes:
- ./data:/tmp
command: python app/main.py -c /tmp/config.yaml -o /tmp/output.json

0 comments on commit e7e8809

Please sign in to comment.