These are some guides for various use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.5 KiB

7 months ago
  1. # Homer
  2. ## Setup Server
  3. ### Docker
  4. The official container and documentation was made by [b4bz](https://hub.docker.com/r/b4bz/homer).
  5. #### Volumes
  6. Set the following volumes with the -v tag.
  7. | Volume-Name | Container mount | Description |
  8. | ------------------------ | --------------- | ---------------------------------- |
  9. | /current/dir/config.yml | /www/config.yml | configuration file for static page |
  10. | homer | /www/assets | storage for icons, etc |
  11. #### Ports
  12. Set the following ports with the -p tag.
  13. | Container Port | Recommended outside port | Protocol | Description |
  14. | -------------- | ------------------------ | -------- | ----------- |
  15. | 8080 | 8080 | TCP | WebUI |
  16. #### Rebuild
  17. ```
  18. #!/bin/sh
  19. docker stop homer
  20. docker rm homer
  21. docker pull b4bz/homer:latest
  22. docker run --name homer \
  23. --restart unless-stopped \
  24. -p 8080:8080 \
  25. -v /root/docker/homer/config.yml:/www/config.yml \
  26. -v homer:/www/assets \
  27. -d b4bz/homer:latest
  28. ```
  29. #### Configuration
  30. This is a sample config.yml:
  31. ```
  32. title: "tmp"
  33. subtitle: "tmp"
  34. logo: "tmp"
  35. footer: ""
  36. message:
  37. style: ""
  38. title: "tmp"
  39. content: "tmp"
  40. links:
  41. - name: "tmp"
  42. icon: "tmp"
  43. url: "tmp"
  44. target: '_blank'
  45. services:
  46. - name: "tmp"
  47. icon: "tmp"
  48. items:
  49. - name: "tmp"
  50. logo: "tmp"
  51. subtitle: "tmp"
  52. tag: "tmp"
  53. url: "tmp"
  54. target: '_blank'
  55. ```