docker-compose.yml 1.2 KB

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