1
0

docker-compose.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # TODO: Revert image tags from feature-react-ui to main before merging to main branch
  2. services:
  3. frontend:
  4. build:
  5. context: ./frontend
  6. dockerfile: Dockerfile
  7. image: ghcr.io/tuanchris/dune-weaver-frontend:feature-react-ui
  8. restart: always
  9. cap_add:
  10. - SYS_NICE # Enable real-time thread priority for smooth UART communication
  11. # ports:
  12. # - "8080:8080" # Map port 8080 of the container to 8080 of the host (access via http://localhost:8080)
  13. network_mode: "host" # Use host network for device access
  14. volumes:
  15. - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
  16. depends_on:
  17. - backend
  18. container_name: dune-weaver-frontend
  19. backend:
  20. build: .
  21. image: ghcr.io/tuanchris/dune-weaver:feature-react-ui
  22. restart: always
  23. ports:
  24. - "8080:8080"
  25. # Environment variables for testing (uncomment to enable):
  26. # environment:
  27. # FORCE_UPDATE_AVAILABLE: "1" # Always show update available
  28. # FAKE_LATEST_VERSION: "99.0.0" # Fake a newer version
  29. volumes:
  30. # Mount entire app directory for persistence
  31. - .:/app
  32. # Mount Docker socket for container self-restart/update
  33. - /var/run/docker.sock:/var/run/docker.sock
  34. # Mount timezone file from host for scheduling features
  35. - /etc/timezone:/etc/host-timezone:ro
  36. # Mount systemd for host shutdown capability
  37. - /run/systemd/system:/run/systemd/system:ro
  38. - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:ro
  39. - /sys/fs/cgroup:/sys/fs/cgroup:ro
  40. # Mount GPIO for DW LEDs and Desert Compass (reed switch)
  41. - /sys:/sys
  42. # Mount /dev for serial port access (devices may not exist at start time)
  43. - /dev:/dev
  44. privileged: true
  45. container_name: dune-weaver-backend