Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Widget Connector
urlhttp://youtube.com/watch?v=XW7twocUXIo

Info
iconfalse
title목차

Table of Contents

01. 사전조건

Info
  1. Centos가 설치된 머신 또는 가상머신
  2. Domain

02. 환경설정

02-01. Docker 설치

Info
title공식 설치 가이드

https://docs.docker.com/engine/install/centos/

Code Block

02-02. Docker Compose 설치

Info
titleDocker-compose 공식 가이드

https://docs.docker.com/compose/install/

Code Block

02-03. Certbot 설치

Info

https://certbot.eff.org/lets-encrypt/centos6-other

Code Block

02-04. SSL 인증서 생성

Info
title사전조건
  • DNS Recode 'A' SubDomain 생성
Code Block
[root@centos confluence-docker-compose]# certbot-auto certonly --cert-name confluence.iisanse.com -d confluence.iisanse.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log

How would you like to authenticate with the ACME CA?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Spin up a temporary webserver (standalone)
2: Place files in webroot directory (webroot)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1
Plugins selected: Authenticator standalone, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for confluence.iisanse.com
Waiting for verification...
Cleaning up challenges
Subscribe to the EFF mailing list (email: sooabia@gmail.com).

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/confluence.iisanse.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/confluence.iisanse.com/privkey.pem
   Your cert will expire on 2021-01-18. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot-auto
   again. To non-interactively renew *all* of your certificates, run
   "certbot-auto renew"
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

[root@centos confluence-docker-compose]#

02-05. Git 설치

Info
titleGit 공식 가이드

https://git-scm.com/download/linux

https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

Code Block

...

02-06. Git Clone

Code Block
$mkdir -p /opt/apps/atlassian/confluence-data

postgre-data 디렉터리 생성

Code Block
$mkdir -p /opt/apps/database/postgre-data

Certbot 설치

Info

https://certbot.eff.org/lets-encrypt/centos6-other

...

SSL 인증서 생성

[root@centos]# git clone https://github.com/Sanses/confluence-docker-compose.git
[root@centos]# cd confluence-docker-compose
[root@centos confluence-docker-compose]#

02-07. 인증서 복사

Code Block
[root@centos confluence-docker-compose]# cp /etc/letsencrypt/live/confluence.iisanse.com/fullchain.pem ssl
[root@centos confluence-docker-compose]# cp /etc/letsencrypt/live/confluence.iisanse.com/privkey.pem ssl
Code Block
$certbot-auto certonly --cert-name wiki.iisanse.com -d wiki.iisanse.com