diff --git a/.env.dist b/.env.dist new file mode 100644 index 0000000..0772f77 --- /dev/null +++ b/.env.dist @@ -0,0 +1,5 @@ +CONF_updateInterval=300 +CONF_babelLocale='de' +CONF_mqtt='@json {"broker": "mqtt", "username": "", "password": ""}' +CONF_volvoData='@json {"username": "", "password": "", "vin": "", "vccapikey": ""}' +TZ='Europe/Berlin' diff --git a/.gitignore b/.gitignore index 2933378..6659316 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea venv -src/settings.dev.json \ No newline at end of file +src/settings.dev.json +.env diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..388ea64 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,24 @@ +version: '3' +services: + app: + build: . + env_file: + - .env + # environment: + # CONF_updateInterval: 300 + # CONF_babelLocale: 'de' + # CONF_mqtt: '@json {"broker": "mqtt", "username": "", "password": ""}' + # CONF_volvoData: '@json {"username": "", "password": "", "vin": "", "vccapikey": ""}' + # TZ: 'Europe/Berlin' + links: + - mqtt + depends_on: + - mqtt + + mqtt: + container_name: mqtt + image: eclipse-mosquitto + expose: + - 1883 + command: [ "/usr/sbin/mosquitto", "-c", "/mosquitto-no-auth.conf" ] +