1. [개발 환경]


1. Docker


2.1 docker 설치

sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL <https://download.docker.com/linux/ubuntu/gpg> | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] <https://download.docker.com/linux/ubuntu> focal stable"
sudo apt update
sudo apt install docker-ce
docker --version

2.2 sudo없이 docker 명령어 사용하기

sudo usermod -aG docker ${USER}
id -nG

3. Nginx 환경설정


3.1 Nginx, letsencrypt, cerbot 설치

sudo apt install nginx -y
sudo systemctl status nginx
sudo apt-get install letsencrypt
sudo apt-get install cerbot python3-cerbot-nginx
sudo certbot --nginx

[your domain]
[2번 선택(redirect)]

3.2 Nginx conf 수정