Created
June 23, 2025 09:22
-
-
Save pulipulichen/890d6f91791ffedb91c1d53ebd692948 to your computer and use it in GitHub Desktop.
Docker,Nextcloud
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
看看網頁版全文 ⇨ 讓Docker架設的Nextcloud預設關閉或開啟應用程式 : Enabling or Disabling Apps by Default in a Dockerized Nextcloud Instance | |
https://blog.pulipuli.info/2025/06/enabling-or-disabling-apps-by-default-in-a-dockerized-nextcloud-instance.html | |
既然談到用Docker架設Nextcloud,那我們就要活用Docker的架構,讓Nextcloud不僅僅是「開箱可用」,而且還是「自訂後」的可用。 | |
我們可以客製化的指令放在「/docker-entrypoint-hooks.d/post-installation」資料夾內,這樣就可以讓Nextcloud初次安裝完成後,自動進行我們要的設定。 | |
Since we're talking about setting up Nextcloud with Docker, let's leverage Docker's architecture to make Nextcloud not just "usable out-of-the-box," but usable after customization. We can place custom commands in the /docker-entrypoint-hooks.d/post-installation directory, allowing Nextcloud to automatically perform our desired configurations after the initial installation completes.。 | |
---- | |
# Docker Nextcloud的自動配置 / Automated Configuration in Docker Nextcloud。 | |
https://hub.docker.com/_/nextcloud。 | |
在Nextcloud的Docker映像檔裡,有提到Nextcloud提供了五個自動配置的鉤子資料夾(hook folders)。 | |
只要我們將可以執行的腳本(.sh)放在資料夾內,Nextcloud就會在佈署過程中的特定階段嘗試去執行這些腳本。 | |
這些資料夾各別是: | |
- /docker-entrypoint-hooks.d/pre-installation:在 Nextcloud 安裝/初始化之前執行 | |
- /docker-entrypoint-hooks.d/post-installation:在 Nextcloud 安裝/初始化之後執行 | |
- /docker-entrypoint-hooks.d/pre-upgrade:在 Nextcloud 升級之前執行 | |
---- | |
繼續閱讀 ⇨ 讓Docker架設的Nextcloud預設關閉或開啟應用程式 : Enabling or Disabling Apps by Default in a Dockerized Nextcloud Instance | |
https://blog.pulipuli.info/2025/06/enabling-or-disabling-apps-by-default-in-a-dockerized-nextcloud-instance.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment