Code Monkey home page Code Monkey logo

heyvaldemar / bitbucket-traefik-letsencrypt-docker-swarm Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 31 KB

Bitbucket with Let's Encrypt in a Docker Swarm

Home Page: https://www.heyvaldemar.com

Shell 100.00%
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

bitbucket-traefik-letsencrypt-docker-swarm's Introduction

Bitbucket with Let's Encrypt in a Docker Swarm

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 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-letsencrypt-docker-swarm.yml bitbucket

Author

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

Communication

๐Ÿ‘พ Chat with IT pros on Discord
๐Ÿ“ง Reach me at [email protected]

Give Thanks

๐Ÿ’Ž Support on GitHub
๐Ÿ† Support on Patreon
๐Ÿฅค Support on BuyMeaCoffee
๐Ÿช Support on Ko-fi
๐Ÿ’– Support on PayPal

bitbucket-traefik-letsencrypt-docker-swarm's People

Contributors

heyvaldemar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.