Skip to content

approximatenumber/atlassian-stack_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published