Install Docker Swarm by following my guide.
Configure Traefik and create secrets for storing the passwords on the Docker Swarm manager node before applying the configuration.
Traefik configuration.
Create a secret for storing the password for Nextcloud database using the command:
printf "YourPassword" | docker secret create nextcloud-postgres-password -
Create a secret for storing the password for Nextcloud admin using the command:
printf "YourPassword" | docker secret create nextcloud-admin-password -
Clear passwords from bash history using the command:
history -c && history -w
Run nextcloud-restore-application-data.sh
on the Docker Swarm worker node where the container for backups is running to restore application data if needed.
Run nextcloud-restore-database.sh
on the Docker Swarm node where the container for backups is running to restore database if needed.
Run docker stack ps nextcloud | grep nextcloud_backups | awk 'NR > 0 {print $4}'
on the Docker Swarm manager node to find on which node container for backups is running.
Deploy Nextcloud in a Docker Swarm using the command:
docker stack deploy -c nextcloud-traefik-letsencrypt-docker-swarm.yml nextcloud
Iโm Vladimir Mikhalev, the Docker Captain, but my friends can call me Valdemar.
๐ My website with detailed IT guides
๐ฌ Follow me on YouTube
๐ฆ Follow me on Twitter
๐จ Follow me on Instagram
๐งต Follow me on Threads
๐ Follow me on Mastodon
๐ง Follow me on Bluesky
๐ธ Follow me on Facebook
๐ฅ Follow me on TikTok
๐ป Follow me on LinkedIn
๐ Follow me on GitHub
๐พ Chat with IT pros on Discord
๐ง Reach me at ask@sre.gg
๐ Support on GitHub
๐ Support on Patreon
๐ฅค Support on BuyMeaCoffee
๐ช Support on Ko-fi
๐ Support on PayPal