export MY_SITE="domain.com"
export MY_EMAIL="my@domain.com"
docker-compose build letsencrypt
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
docker-compose -f docker-compose_dummy.yml start
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.
docker-compose -f docker-compose_dummy.yml stop
(you can configure db data in db/init.sql
)
docker-compose build db
(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
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
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.