-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nextcloud with Let's Encrypt Using Docker Compose
- Loading branch information
1 parent
3226d76
commit 6412e16
Showing
4 changed files
with
186 additions
and
210 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
# Traefik Variables | ||
TRAEFIK_IMAGE_TAG=traefik:2.9 | ||
TRAEFIK_IMAGE_TAG=traefik:3.2 | ||
# Set the log level (DEBUG, INFO, WARN, ERROR) | ||
TRAEFIK_LOG_LEVEL=WARN | ||
TRAEFIK_ACME_EMAIL=[email protected] | ||
# The email address used by Let's Encrypt for renewal notices | ||
TRAEFIK_ACME_EMAIL=[email protected] | ||
# The hostname used to access the Traefik dashboard and to configure domain-specific rules | ||
TRAEFIK_HOSTNAME=traefik.nextcloud.heyvaldemar.net | ||
# Basic Authentication for Traefik Dashboard | ||
# Username: traefikadmin | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,11 +22,11 @@ Deploy Nextcloud using Docker Compose: | |
|
||
`docker compose -f nextcloud-traefik-letsencrypt-docker-compose.yml -p nextcloud up -d` | ||
|
||
# Background Jobs Using Cron | ||
## Background Jobs Using Cron | ||
|
||
To ensure your Nextcloud instance operates efficiently, it's important to use the "Cron" method to execute background jobs. A dedicated Docker container has already been set up in your environment to handle these tasks. | ||
|
||
## Steps to Enable Cron: | ||
### Steps to Enable Cron: | ||
|
||
1. **Log in to Nextcloud as an Administrator.** | ||
2. Go to **Administration settings** (click on your user profile in the top right corner and select "Administration settings"). | ||
|
@@ -36,11 +36,11 @@ To ensure your Nextcloud instance operates efficiently, it's important to use th | |
|
||
![nextcloud-cron](https://github.com/user-attachments/assets/1fdbf1af-a250-481d-b3b5-6a6cb98b6c51) | ||
|
||
## Why Use Cron? | ||
### Why Use Cron? | ||
|
||
The "Cron" method ensures that background tasks, such as file indexing, notifications, and cleanup operations, run at regular intervals independently of user activity. This method is more reliable and efficient than AJAX or Webcron, particularly for larger or more active instances, as it does not depend on users accessing the site to trigger these tasks. With the dedicated container in your setup, this method keeps your Nextcloud instance responsive and in good health by running these jobs consistently. | ||
|
||
# Backups | ||
## Backups | ||
|
||
The `backups` container in the configuration is responsible for the following: | ||
|
||
|
@@ -53,7 +53,7 @@ Customizable backup path, filename pattern, and schedule through variables like | |
|
||
By utilizing this container, consistent and automated backups of the essential components of your instance are ensured. Moreover, efficient management of backup storage and tailored backup routines can be achieved through easy and flexible configuration using environment variables. | ||
|
||
# nextcloud-restore-database.sh Description | ||
## nextcloud-restore-database.sh Description | ||
|
||
This script facilitates the restoration of a database backup: | ||
|
||
|
@@ -75,7 +75,7 @@ To make the `nextcloud-restore-database.sh` script executable, run the following | |
|
||
Usage of this script ensures a controlled and guided process to restore the database from an existing backup. | ||
|
||
# nextcloud-restore-application-data.sh Description | ||
## nextcloud-restore-application-data.sh Description | ||
|
||
This script is designed to restore the application data: | ||
|
||
|
@@ -97,7 +97,7 @@ To make the `nextcloud-restore-application-data.sh` script executable, run the f | |
|
||
By utilizing this script, you can efficiently restore application data from an existing backup while ensuring proper coordination with the running service. | ||
|
||
# Disabling Skeleton Directory for New Users | ||
## Disabling Skeleton Directory for New Users | ||
|
||
New Nextcloud users typically receive default files and folders upon account creation, which are sourced from the skeleton directory. Disabling this feature can be useful to provide a clean start for users and reduce disk usage. Use the `occ config:system:set` command to set the skeleton directory path to an empty string, effectively disabling the default content for new users. | ||
|
||
|
@@ -109,7 +109,7 @@ Run the command below, replacing `nextcloud-container-name` with your container' | |
|
||
`docker exec -u 33 -it nextcloud-container-name php occ config:system:set skeletondirectory --value=''` | ||
|
||
# Fixing Database Index Issues | ||
## Fixing Database Index Issues | ||
|
||
Your Nextcloud database might be missing some indexes. This situation can occur because adding indexes to large tables can take considerable time, so they are not added automatically. Running `occ db:add-missing-indices` manually allows these indexes to be added while the instance continues running. Adding these indexes can significantly speed up queries on tables like `filecache` and `systemtag_object_mapping`, which might be missing indexes such as `fs_storage_path_prefix` and `systag_by_objectid`. | ||
|
||
|
@@ -128,7 +128,7 @@ Confirm the indices were added by checking the status: | |
- Operations on large databases can take time; consider scheduling during low-usage periods. | ||
- Always backup your database before making changes. | ||
|
||
# Rescanning Files | ||
## Rescanning Files | ||
|
||
When files are added directly to Nextcloud's data directory through methods other than the web interface or sync clients (e.g., via FTP or direct server access), they are not automatically visible in the Nextcloud user interface. This happens because these files bypass Nextcloud's normal indexing process. | ||
|
||
|
@@ -145,31 +145,82 @@ Run the command below, replacing `nextcloud-container-name` with your container' | |
- Be aware that this command can significantly affect performance during its execution. It is advisable to run this scan during periods of low user activity. | ||
- Always ensure that you have up-to-date backups before performing any operations that affect the filesystem or database. | ||
|
||
# Author | ||
## Author | ||
|
||
I’m Vladimir Mikhalev, the [Docker Captain](https://www.docker.com/captains/vladimir-mikhalev/), but my friends can call me Valdemar. | ||
hey everyone, | ||
|
||
🌐 My [website](https://www.heyvaldemar.com/) with detailed IT guides\ | ||
🎬 Follow me on [YouTube](https://www.youtube.com/channel/UCf85kQ0u1sYTTTyKVpxrlyQ?sub_confirmation=1)\ | ||
🐦 Follow me on [Twitter](https://twitter.com/heyValdemar)\ | ||
🎨 Follow me on [Instagram](https://www.instagram.com/heyvaldemar/)\ | ||
🧵 Follow me on [Threads](https://www.threads.net/@heyvaldemar)\ | ||
🐘 Follow me on [Mastodon](https://mastodon.social/@heyvaldemar)\ | ||
🧊 Follow me on [Bluesky](https://bsky.app/profile/heyvaldemar.bsky.social)\ | ||
🎸 Follow me on [Facebook](https://www.facebook.com/heyValdemarFB/)\ | ||
🎥 Follow me on [TikTok](https://www.tiktok.com/@heyvaldemar)\ | ||
💻 Follow me on [LinkedIn](https://www.linkedin.com/in/heyvaldemar/)\ | ||
🐈 Follow me on [GitHub](https://github.com/heyvaldemar) | ||
💾 I’ve been in the IT game for over 20 years, cutting my teeth with some big names like [IBM](https://www.linkedin.com/in/heyvaldemar/), [Thales](https://www.linkedin.com/in/heyvaldemar/), and [Amazon](https://www.linkedin.com/in/heyvaldemar/). These days, I wear the hat of a DevOps Consultant and Team Lead, but what really gets me going is Docker and container technology - I’m kind of obsessed! | ||
|
||
# Communication | ||
💛 I have my own IT [blog](https://www.heyvaldemar.com/), where I’ve built a [community](https://discord.gg/AJQGCCBcqf) of DevOps enthusiasts who share my love for all things Docker, containers, and IT technologies in general. And to make sure everyone can jump on this awesome DevOps train, I write super detailed guides (seriously, they’re foolproof!) that help even newbies deploy and manage complex IT solutions. | ||
|
||
👾 Chat with IT pros on [Discord](https://discord.gg/AJQGCCBcqf)\ | ||
📧 Reach me at [email protected] | ||
🚀 My dream is to empower every single person in the DevOps community to squeeze every last drop of potential out of Docker and container tech. | ||
|
||
# Give Thanks | ||
🐳 As a [Docker Captain](https://www.docker.com/captains/vladimir-mikhalev/), I’m stoked to share my knowledge, experiences, and a good dose of passion for the tech. My aim is to encourage learning, innovation, and growth, and to inspire the next generation of IT whizz-kids to push Docker and container tech to its limits. | ||
|
||
💎 Support on [GitHub](https://github.com/sponsors/heyValdemar)\ | ||
🏆 Support on [Patreon](https://www.patreon.com/heyValdemar)\ | ||
🥤 Support on [BuyMeaCoffee](https://www.buymeacoffee.com/heyValdemar)\ | ||
🍪 Support on [Ko-fi](https://ko-fi.com/heyValdemar)\ | ||
💖 Support on [PayPal](https://www.paypal.com/paypalme/heyValdemarCOM) | ||
Let’s do this together! | ||
|
||
## My 2D Portfolio | ||
|
||
🕹️ Click into [sre.gg](https://www.sre.gg/) — my virtual space is a 2D pixel-art portfolio inviting you to interact with elements that encapsulate the milestones of my DevOps career. | ||
|
||
## My Courses | ||
|
||
🎓 Dive into my [comprehensive IT courses](https://www.heyvaldemar.com/courses/) designed for enthusiasts and professionals alike. Whether you're looking to master Docker, conquer Kubernetes, or advance your DevOps skills, my courses provide a structured pathway to enhancing your technical prowess. | ||
|
||
🔑 [Each course](https://www.udemy.com/user/heyvaldemar/) is built from the ground up with real-world scenarios in mind, ensuring that you gain practical knowledge and hands-on experience. From beginners to seasoned professionals, there's something here for everyone to elevate their IT skills. | ||
|
||
## My Services | ||
|
||
💼 Take a look at my [service catalog](https://www.heyvaldemar.com/services/) and find out how we can make your technological life better. Whether it's increasing the efficiency of your IT infrastructure, advancing your career, or expanding your technological horizons — I'm here to help you achieve your goals. From DevOps transformations to building gaming computers — let's make your technology unparalleled! | ||
|
||
## Patreon Exclusives | ||
|
||
🏆 Join my [Patreon](https://www.patreon.com/heyvaldemar) and dive deep into the world of Docker and DevOps with exclusive content tailored for IT enthusiasts and professionals. As your experienced guide, I offer a range of membership tiers designed to suit everyone from newbies to IT experts. | ||
|
||
## My Recommendations | ||
|
||
📕 Check out my collection of [essential DevOps books](https://kit.co/heyvaldemar/essential-devops-books)\ | ||
🖥️ Check out my [studio streaming and recording kit](https://kit.co/heyvaldemar/my-studio-streaming-and-recording-kit)\ | ||
📡 Check out my [streaming starter kit](https://kit.co/heyvaldemar/streaming-starter-kit) | ||
|
||
## Follow Me | ||
|
||
🎬 [YouTube](https://www.youtube.com/channel/UCf85kQ0u1sYTTTyKVpxrlyQ?sub_confirmation=1)\ | ||
🐦 [X / Twitter](https://twitter.com/heyvaldemar)\ | ||
🎨 [Instagram](https://www.instagram.com/heyvaldemar/)\ | ||
🐘 [Mastodon](https://mastodon.social/@heyvaldemar)\ | ||
🧵 [Threads](https://www.threads.net/@heyvaldemar)\ | ||
🎸 [Facebook](https://www.facebook.com/heyvaldemarFB/)\ | ||
🧊 [Bluesky](https://bsky.app/profile/heyvaldemar.bsky.social)\ | ||
🎥 [TikTok](https://www.tiktok.com/@heyvaldemar)\ | ||
💻 [LinkedIn](https://www.linkedin.com/in/heyvaldemar/)\ | ||
📣 [daily.dev Squad](https://app.daily.dev/squads/devopscompass)\ | ||
🧩 [LeetCode](https://leetcode.com/u/heyvaldemar/)\ | ||
🐈 [GitHub](https://github.com/heyvaldemar) | ||
|
||
## Community of IT Experts | ||
|
||
👾 [Discord](https://discord.gg/AJQGCCBcqf) | ||
|
||
## Refill My Coffee Supplies | ||
|
||
💖 [PayPal](https://www.paypal.com/paypalme/heyvaldemarCOM)\ | ||
🏆 [Patreon](https://www.patreon.com/heyvaldemar)\ | ||
💎 [GitHub](https://github.com/sponsors/heyvaldemar)\ | ||
🥤 [BuyMeaCoffee](https://www.buymeacoffee.com/heyvaldemar)\ | ||
🍪 [Ko-fi](https://ko-fi.com/heyvaldemar) | ||
|
||
🌟 **Bitcoin (BTC):** bc1q2fq0k2lvdythdrj4ep20metjwnjuf7wccpckxc\ | ||
🔹 **Ethereum (ETH):** 0x76C936F9366Fad39769CA5285b0Af1d975adacB8\ | ||
🪙 **Binance Coin (BNB):** bnb1xnn6gg63lr2dgufngfr0lkq39kz8qltjt2v2g6\ | ||
💠 **Litecoin (LTC):** LMGrhx8Jsx73h1pWY9FE8GB46nBytjvz8g | ||
|
||
<div align="center"> | ||
|
||
### Show some 💜 by starring some of the [repositories](https://github.com/heyValdemar?tab=repositories)! | ||
|
||
![octocat](https://user-images.githubusercontent.com/10498744/210113490-e2fad07f-4488-4da8-a656-b9abbdd8cb26.gif) | ||
|
||
</div> | ||
|
||
![footer](https://user-images.githubusercontent.com/10498744/210157572-1fca0242-8af2-46a6-bfa3-666ffd40ebde.svg) |
Oops, something went wrong.