Skip to content

Commit

Permalink
chore(TRIVIAL): Add the docker compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
pestanko committed Mar 18, 2024
1 parent c97cc78 commit 91baefd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ WORKDIR /app
COPY --from=build /app/bin ./bin
COPY --from=build /app/config ./config

RUN apk add --no-cache curl

EXPOSE 8080

ENTRYPOINT ["/app/bin/miniscrape", "serve"]
14 changes: 14 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
miniscrape:
image: miniscrape
build: .
ports:
- "8080:8080"
environment:
LOG_LEVEL: info
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s

0 comments on commit 91baefd

Please sign in to comment.