Hey. Let’s assume I have a docker-compose.yml in my service, and I want to have the user be able to specify the init creation of a database with an ENVVAR.
influxdb: restart: always image: influxdb:latest environment: - INFLUXDB_DB=mydb volumes: - 'sense-data:/data' ports: - "8086:8086"
In this case
INFXLUDB_DB=mydb is what I want to change, but I want the user to be able to change this via a service or device variable.
I want the service or device variable
#INFLUX_DB=[db_name] to inform the docker-compose script.
And I also want this variable to =mydb if none are specified by the user.