| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- # TODO: Revert image tags from feature-react-ui to main before merging to main branch
- services:
- frontend:
- build:
- context: ./frontend
- dockerfile: Dockerfile
- image: ghcr.io/tuanchris/dune-weaver-frontend:feature-react-ui
- restart: always
- cap_add:
- - SYS_NICE # Enable real-time thread priority for smooth UART communication
- # ports:
- # - "8080:8080" # Map port 8080 of the container to 8080 of the host (access via http://localhost:8080)
- network_mode: "host" # Use host network for device access
- volumes:
- - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- depends_on:
- - backend
- container_name: dune-weaver-frontend
- backend:
- build: .
- image: ghcr.io/tuanchris/dune-weaver:feature-react-ui
- restart: always
- ports:
- - "8080:8080"
- environment:
- # Testing overrides (uncomment to enable):
- # FORCE_UPDATE_AVAILABLE: "1" # Always show update available
- # FAKE_LATEST_VERSION: "99.0.0" # Fake a newer version
- volumes:
- # Mount entire app directory for persistence
- - .:/app
- # Mount Docker socket for container self-restart/update
- - /var/run/docker.sock:/var/run/docker.sock
- # Mount timezone file from host for scheduling features
- - /etc/timezone:/etc/host-timezone:ro
- # Mount systemd for host shutdown capability
- - /run/systemd/system:/run/systemd/system:ro
- - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:ro
- - /sys/fs/cgroup:/sys/fs/cgroup:ro
- # Mount GPIO for DW LEDs and Desert Compass (reed switch)
- - /sys:/sys
- # Mount /dev for serial port access (devices may not exist at start time)
- - /dev:/dev
- privileged: true
- container_name: dune-weaver-backend
|