From 28c44977cc0a00a3a4a2c11b8b93d161f48c6a10 Mon Sep 17 00:00:00 2001 From: Thomas MILLET Date: Fri, 21 Jun 2024 16:07:11 +0200 Subject: [PATCH] fix(docker): Add missing `.env` file to Docker deployment files (#126) Signed-off-by: Thomas MILLET --- .gitignore | 1 - deploy/docker/.env | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 deploy/docker/.env diff --git a/.gitignore b/.gitignore index df2d3c0..c489e32 100644 --- a/.gitignore +++ b/.gitignore @@ -88,7 +88,6 @@ celerybeat-schedule *.sage.py # Environments -.env .venv env/ venv/ diff --git a/deploy/docker/.env b/deploy/docker/.env new file mode 100644 index 0000000..eeb609d --- /dev/null +++ b/deploy/docker/.env @@ -0,0 +1,30 @@ +# Sensor selection +# Available options: hwpc +SENSOR_TYPE=hwpc +SENSOR_IMAGE=powerapi/${SENSOR_TYPE}-sensor:1.3.0 + +# Formula selection +# Available options: smartwatts +FORMULA_TYPE=smartwatts +FORMULA_IMAGE=powerapi/${FORMULA_TYPE}-formula:2.2.0 + +# Source selection +# Available options: mongodb, socket +POWERAPI_SOURCE=socket + +# Destination selection +# Available options: influxdb2, prometheus, mongodb, csv, filedb +POWERAPI_DESTINATION=prometheus + +# Third party images +MONGO_IMAGE=mongo:7.0.8 +MONGOEXPRESS_IMAGE=mongo-express:1.0.2-20 +INFLUXDB_IMAGE=influxdb:2.7.5 +GRAFANA_IMAGE=grafana/grafana:10.1.9 +PROMETHEUS_IMAGE=prom/prometheus:v2.51.2 +CSV_IMAGE=busybox:stable-glibc +FILEDB_IMAGE=busybox:stable-glibc +SOCKET_IMAGE=busybox:stable-glibc + +# Docker compose profiles +COMPOSE_PROFILES=${POWERAPI_SOURCE},${POWERAPI_DESTINATION}