docker-compose.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. # Persistent data directories
  23. - ./patterns:/app/patterns
  24. - ./playlists:/app/playlists
  25. - ./state.json:/app/state.json
  26. - ./static/custom:/app/static/custom
  27. # Mount Docker socket for container self-restart/update
  28. - /var/run/docker.sock:/var/run/docker.sock
  29. # Mount timezone file from host for scheduling features
  30. - /etc/timezone:/etc/host-timezone:ro
  31. # Mount systemd for host shutdown capability
  32. - /run/systemd/system:/run/systemd/system:ro
  33. - /var/run/dbus/system_bus_socket:/var/run/dbus/system_socket:ro
  34. - /sys/fs/cgroup:/sys/fs/cgroup:ro
  35. # Mount GPIO for DW LEDs and Desert Compass (reed switch)
  36. - /sys:/sys
  37. # Mount /dev for serial port access (devices may not exist at start time)
  38. - /dev:/dev
  39. privileged: true
  40. container_name: dune-weaver-backend