From 233393fc630181163e018f42b0413a6ed1b5e4a2 Mon Sep 17 00:00:00 2001 From: Clement <159793462+clementupshot@users.noreply.github.com> Date: Thu, 5 Sep 2024 15:41:10 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d85bbf9..8bc025d 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ A complete working example is provided in the `docker-compose.yml` file. Must be an `int` >= 1. Represents how many days of historical data to use. - TIMEFRAME - This should be in this form: `10m`, `1h`, `1d`, etc. + This should be in this form: `10min`, `1h`, `1d`, `1m`, etc. Note: For Coingecko, Data granularity (candle's body) is automatic - [see here](https://docs.coingecko.com/reference/coins-id-ohlc). To avoid downsampling, it is recommanded to use with Coingecko: - TIMEFRAME >= 30m if TRAINING_DAYS <= 2 - TIMEFRAME >= 4h if TRAINING_DAYS <= 30 From 3b3644b4703fa2a304befc57bb65e3c2d0383ef2 Mon Sep 17 00:00:00 2001 From: Clement <159793462+clementupshot@users.noreply.github.com> Date: Thu, 5 Sep 2024 15:41:27 +0200 Subject: [PATCH 2/2] Fix healthcheck --- Dockerfile | 3 +++ docker-compose.yml | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a24149b..d399ef2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,8 @@ FROM python:3.11-slim as project_env +# Install curl +RUN apt-get update && apt-get install -y curl + # Set the working directory in the container WORKDIR /app diff --git a/docker-compose.yml b/docker-compose.yml index a339372..60933c9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ services: inference: - container_name: inference-basic-eth-pred + container_name: inference env_file: - .env build: . @@ -8,7 +8,7 @@ services: ports: - "8000:8000" healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8000/inference/${TOKEN}"] + test: ["CMD", "curl", "-f", "http://inference:8000/inference/${TOKEN}"] interval: 10s timeout: 5s retries: 12 @@ -16,7 +16,7 @@ services: - ./inference-data:/app/data updater: - container_name: updater-basic-eth-pred + container_name: updater build: . environment: - INFERENCE_API_ADDRESS=http://inference:8000