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