Guest User

Untitled

a guest
Aug 29th, 2025
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. services:
  2.  
  3. invidious:
  4. #image: quay.io/invidious/invidious:2024.11.07-792d0d5
  5. # image: quay.io/invidious/invidious:latest
  6. image: quay.io/invidious/invidious:master
  7. restart: unless-stopped
  8. ports:
  9. - "3000:3000"
  10. environment:
  11. # Please read the following file for a comprehensive list of all available
  12. # configuration options and their associated syntax:
  13. # https://github.com/iv-org/invidious/blob/master/config/config.example.yml
  14. INVIDIOUS_CONFIG: |
  15. db:
  16. dbname: invidious
  17. user: kemal
  18. password: kemal
  19. host: invidious-db
  20. port: 5432
  21. invidious_companion:
  22. # URL used for the internal communication between invidious and invidious companion
  23. # There is no need to change that except if Invidious companion does not run on the same docker compose file.
  24. - private_url: "http://companion:8282"
  25. # (public) URL used for the communication between your browser and invidious companion
  26. # IF you are using a reverse proxy OR accessing invidious from an external IP then you NEED to change this value
  27. # Please consult for more doc: https://github.com/unixfox/invidious/blob/invidious-companion/config/config.example.yml#L57-L88
  28. # And make sure to add the routes from the post install when using a reverse proxy!
  29. public_url: "https://CHANGEME.com"
  30. # IT is NOT recommended to use the same key as HMAC KEY. Generate a new key!
  31. # Use the key generated in the 2nd step
  32. invidious_companion_key: "CHANGEME"
  33. # external_port:
  34. # domain:
  35. # https_only: false
  36. # statistics_enabled: false
  37. # Use the key generated in the 2nd step
  38. check_tables: true
  39. admins: ["CHANGEME"]
  40. external_port: 443
  41. domain: CHANGEME.com
  42. https_only: true
  43.  
  44. statistics_enabled: true
  45. hmac_key: "CHANGEME"
  46. healthcheck:
  47. test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1
  48. interval: 30s
  49. timeout: 5s
  50. retries: 2
  51. logging:
  52. options:
  53. max-size: "1G"
  54. max-file: "4"
  55. depends_on:
  56. - invidious-db
  57.  
  58. companion:
  59. image: quay.io/invidious/invidious-companion:latest
  60. environment:
  61. # Use the key generated in the 2nd step
  62. - SERVER_SECRET_KEY=CHANGEME
  63. restart: unless-stopped
  64. # Remove "127.0.0.1:" if used from an external IP
  65. ports:
  66. - "8282:8282"
  67. logging:
  68. options:
  69. max-size: "1G"
  70. max-file: "4"
  71. cap_drop:
  72. - ALL
  73. read_only: true
  74. # cache for youtube library
  75. volumes:
  76. - companioncache:/var/tmp/youtubei.js:rw
  77. security_opt:
  78. - no-new-privileges:true
  79.  
  80. invidious-db:
  81. image: docker.io/library/postgres:14
  82. restart: unless-stopped
  83. volumes:
  84. - postgresdata:/var/lib/postgresql/data
  85. - ./config/sql:/config/sql
  86. - ./docker/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh
  87. environment:
  88. POSTGRES_DB: invidious
  89. POSTGRES_USER: kemal
  90. POSTGRES_PASSWORD: kemal
  91. healthcheck:
  92. test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
  93.  
  94. volumes:
  95. postgresdata:
  96. companioncache:
  97.  
Advertisement
Add Comment
Please, Sign In to add comment