Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/heyvaldemar/bitbucket-traefik-ssl-certificate-docker-swarm

Bitbucket with SSL Certificate in a Docker Swarm
https://github.com/heyvaldemar/bitbucket-traefik-ssl-certificate-docker-swarm

bitbucket bitbucket-server cicd containerization containers devops docker docker-compose docker-container docker-hub docker-image docker-registry dockerfile environment-variables healthcheck letsencrypt letsencrypt-certificates traefik yaml

Last synced: 1 day ago
JSON representation

Bitbucket with SSL Certificate in a Docker Swarm

Awesome Lists containing this project

README

        

# Bitbucket with SSL Certificate in a Docker Swarm

Install Docker Swarm by following my [guide](https://www.heyvaldemar.com/install-docker-swarm-on-ubuntu-server/).

Configure Traefik and create secrets for storing the passwords on the Docker Swarm manager node before applying the configuration.

Traefik [configuration](https://github.com/heyValdemar/traefik-ssl-certificate-docker-swarm).

Create a secret for storing the password for Bitbucket database using the command:

`printf "YourPassword" | docker secret create bitbucket-postgres-password -`

Clear passwords from bash history using the command:

`history -c && history -w`

Run `bitbucket-restore-application-data.sh` on the Docker Swarm worker node where the container for backups is running to restore application data if needed.

Run `bitbucket-restore-database.sh` on the Docker Swarm node where the container for backups is running to restore database if needed.

Run `docker stack ps bitbucket | grep bitbucket_backups | awk 'NR > 0 {print $4}'` on the Docker Swarm manager node to find on which node container for backups is running.

Deploy Bitbucket in a Docker Swarm using the command:

`docker stack deploy -c bitbucket-traefik-ssl-certificate-docker-swarm.yml bitbucket`

# Author

Iโ€™m Vladimir Mikhalev, the [Docker Captain](https://www.docker.com/captains/vladimir-mikhalev/), but my friends can call me Valdemar.

๐ŸŒ 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)

# Communication

๐Ÿ‘พ Chat with IT pros on [Discord](https://discord.gg/AJQGCCBcqf)\
๐Ÿ“ง Reach me at [email protected]

# Give Thanks

๐Ÿ’Ž 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)