docker-compose.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. ports:
  10. - "80:80"
  11. volumes:
  12. - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
  13. depends_on:
  14. - backend
  15. container_name: dune-weaver-frontend
  16. backend:
  17. build: .
  18. image: ghcr.io/tuanchris/dune-weaver:feature-react-ui
  19. restart: always
  20. ports:
  21. - "8080:8080"
  22. volumes:
  23. # Mount entire app directory for persistence
  24. - .:/app
  25. # Mount Docker socket for container self-restart/update
  26. - /var/run/docker.sock:/var/run/docker.sock
  27. # Mount timezone file from host for scheduling features
  28. - /etc/timezone:/etc/host-timezone:ro
  29. # Mount systemd for host shutdown capability
  30. - /run/systemd/system:/run/systemd/system:ro
  31. - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:ro
  32. - /sys/fs/cgroup:/sys/fs/cgroup:ro
  33. # Mount GPIO for DW LEDs and Desert Compass (reed switch)
  34. - /sys:/sys
  35. # Mount /dev for serial port access (devices may not exist at start time)
  36. - /dev:/dev
  37. privileged: true
  38. container_name: dune-weaver-backend