docker-compose.yml 1.3 KB

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