diff --git a/Dockerfile b/Dockerfile index 4f9be50..9f66c5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..f3f0d7c --- /dev/null +++ b/docker-compose.yaml @@ -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