InfluxDB support and dockerisation
This commit is contained in:
16
docker-compose.yaml
Normal file
16
docker-compose.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
metlogger:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/Dockerfile
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- .:/app # optional: mount code for live editing
|
||||
devices:
|
||||
- "/dev/ttyACM0:/dev/ttyACM0"
|
||||
env_file:
|
||||
- .env
|
||||
command: python -u meteostick_reader.py
|
||||
|
||||
Reference in New Issue
Block a user