Git Product home page Git Product logo

atlassian-stack_docker's Introduction

atlassian stack

Export your site name and email

export MY_SITE="domain.com"

export MY_EMAIL="[email protected]"

Build LetsEncrypt with dummy certificate

docker-compose build letsencrypt

Configure nginx config and index page

sed -i "s/domain.com/${MY_SITE}/g" nginx/conf.d_dummy/nginx_dummy.conf

sed -i "s/domain.com/${MY_SITE}/g" nginx/conf.d/atlassian.conf

sed -i "s/domain.com/${MY_SITE}/g" nginx/html/index.html

Start nginx with dummy certificate

docker-compose -f docker-compose_dummy.yml start

Get your certificate
docker-compose run --rm letsencrypt \
  letsencrypt certonly --webroot \
  --email ${MY_EMAIL} --agree-tos \
  -w /var/www/letsencrypt -d ${MY_SITE}

You need to update it in future.

Stop them

docker-compose -f docker-compose_dummy.yml stop

Build postgres container

(you can configure db data in db/init.sql)

docker-compose build db

Create accounts for SMTP-container

(you can change passwords)

for service_ in jira confluence bitbucket; do
    docker run --rm \
        -e MAIL_USER=${service_}@${MY_SITE} \
        -e MAIL_PASS=VerySecurePassword \
        -ti tvial/docker-mailserver:latest \
        /bin/sh -c 'echo "$MAIL_USER|$(doveadm pw -s SHA512-CRYPT -u $MAIL_USER -p $MAIL_PASS)"' >> config/postfix-accounts.cf
done
Create external volumes for our data
docker volume create postgres-data
docker volume create jira-install
docker volume create jira-home
docker volume create bitbucket-install
docker volume create bitbucket-home
docker volume create bitbucket-install
docker volume create bitbucket-home
That`s all

Let`s start all services with

docker-compose up -d

and check the log messages.

If everything is ok, you can access $MY_SITE/jira, $MY_SITE/confluence and $MY_SITE/bitbucket.

Thanks to all container images I used here.

atlassian-stack_docker's People

Contributors

approximatenumber 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.