Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/heyvaldemar/bitbucket-traefik-ssl-certificate-docker-swarm
- Owner: heyvaldemar
- Created: 2021-05-09T03:57:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-19T13:01:37.000Z (10 months ago)
- Last Synced: 2024-11-26T07:08:20.344Z (2 months ago)
- Topics: 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
- Language: Shell
- Homepage: https://www.heyvaldemar.com
- Size: 30.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
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)