Compare commits
6 Commits
59672292e2
...
XGBRegress
Author | SHA1 | Date | |
---|---|---|---|
1ba4c0158d | |||
fc7097fd50 | |||
4b7f57d0dd | |||
61fa099391 | |||
520416b772 | |||
3f17f7f0b7 |
@ -4,6 +4,8 @@ FROM amd64/python:3.9-buster as project_env
|
|||||||
# Set the working directory in the container
|
# Set the working directory in the container
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
ENV FLASK_ENV=production
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
COPY requirements.txt requirements.txt
|
COPY requirements.txt requirements.txt
|
||||||
RUN pip install --upgrade pip setuptools \
|
RUN pip install --upgrade pip setuptools \
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"nodeRpc": "###RPC_URL###",
|
"nodeRpc": "###RPC_URL###",
|
||||||
"maxRetries": 10,
|
"maxRetries": 10,
|
||||||
"delay": 30,
|
"delay": 30,
|
||||||
"submitTx": false
|
"submitTx": true
|
||||||
},
|
},
|
||||||
"worker": [
|
"worker": [
|
||||||
{
|
{
|
||||||
|
@ -6,10 +6,10 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/inference/ETH"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/inference/ETH/10m"]
|
||||||
interval: 10s
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 12
|
retries: 20
|
||||||
volumes:
|
volumes:
|
||||||
- ./inference-data:/app/data
|
- ./inference-data:/app/data
|
||||||
restart: always
|
restart: always
|
||||||
|
Reference in New Issue
Block a user