瀏覽代碼

add device

Tuan Nguyen 1 年之前
父節點
當前提交
a41fc68f34
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      docker-compose.yml

+ 3 - 0
docker-compose.yml

@@ -5,6 +5,9 @@ services:
       - "8080:8080" # Map port 8080 of the container to 8080 of the host
     volumes:
       - ./theta_rho_files:/app/theta_rho_files # Map host folder to container folder
+    devices:
+      - "/dev/ttyACM0:/dev/ttyACM0"
+    privileged: true
     environment:
       - FLASK_ENV=development # Set environment variables for Flask
     container_name: flask-theta-rho-app