mirror of
https://github.com/michivonah/bbzw-horizon.git
synced 2025-12-22 17:16:27 +01:00
adjust Dockerfile + add grafana
This commit is contained in:
parent
6faba4a759
commit
49b01c269a
2 changed files with 15 additions and 1 deletions
11
grafana/docker-compose.yml
Normal file
11
grafana/docker-compose.yml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
services:
|
||||||
|
grafana:
|
||||||
|
image: grafana/grafana:latest
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
environment:
|
||||||
|
- GF_DATABASE_TYPE=sqlite3
|
||||||
|
- GF_DATABASE_SQLITE3_PATH=/var/lib/grafana/grafana.db
|
||||||
|
volumes:
|
||||||
|
- ./grafana-data:/var/lib/grafana
|
||||||
|
restart: unless-stopped
|
||||||
|
|
@ -8,7 +8,7 @@ WORKDIR /app/
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|
||||||
# Set enviromental variables
|
# Set enviromental variables
|
||||||
ENV DB_CONNECTION_STRING ep-plannerDB
|
ENV DB_CONNECTION_STRING=ep-plannerDB
|
||||||
|
|
||||||
# Install needed packages
|
# Install needed packages
|
||||||
RUN pip3 install --upgrade pip
|
RUN pip3 install --upgrade pip
|
||||||
|
|
@ -20,6 +20,9 @@ EXPOSE 8080
|
||||||
|
|
||||||
# Imort script
|
# Imort script
|
||||||
COPY webservice.py .
|
COPY webservice.py .
|
||||||
|
COPY crypto.py .
|
||||||
|
COPY dbfunctions.py .
|
||||||
|
COPY models.py .
|
||||||
|
|
||||||
# Start app
|
# Start app
|
||||||
CMD ["uvicorn", "webservice:app", "--host", "0.0.0.0", "--port", "8080"]
|
CMD ["uvicorn", "webservice:app", "--host", "0.0.0.0", "--port", "8080"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue