Skip to content

Commit

Permalink
fix(docker): Add missing .env file to Docker deployment files (#126)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas MILLET <[email protected]>
  • Loading branch information
Thommil authored Jun 21, 2024
1 parent 78baf1d commit 28c4497
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ celerybeat-schedule
*.sage.py

# Environments
.env
.venv
env/
venv/
Expand Down
30 changes: 30 additions & 0 deletions deploy/docker/.env
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit 28c4497

Please sign in to comment.