Dockge 접속
- 브라우저를 열고 아래 주소로 이동하세요:
https://<SERVER_IP> - 브라우저에서 SSL 경고가 표시될 수 있습니다 (자체 서명 인증서)
- 첫 접속 시 관리자 계정을 생성하세요.
주요 파일 및 디렉터리
- 설치 디렉토리:
/opt/dockge - Compose 파일:
/opt/dockge/compose.yaml - 스택 디렉토리:
/opt/stacks - Dockge 데이터:
/opt/dockge/data - Nginx 설정:
/etc/nginx/sites-available/dockge - TLS 인증서:
/etc/nginx/ssl
도메인으로 SSL 활성화하기
1. 도메인을 서버 IP로 연결합니다.
2. Nginx 설정을 편집하여 server_name <IP>; 을 실제 도메인으로 교체합니다 (<your-domain>) HTTP (포트 80) 및 HTTPS (포트 443) 블록 모두에 적용합니다:
vim /etc/nginx/sites-available/deockge
3. Certbot 설치:
apt install -y certbot python3-certbot-nginx
4. 다음 명령어를 실행하여 유효한 Let's Encrypt 인증서를 발급받으세요:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Nginx 설정의 SSL 경로를 교체합니다:
vim /etc/nginx/sites-available/dockge
# Before:
# ssl_certificate /etc/nginx/ssl/fullchain.pem;
# ssl_certificate_key /etc/nginx/ssl/privkey.pem;
# After:
# ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
6. 변경 사항을 적용하기 위해 Nginx를 재시작합니다:
systemctl restart nginx
7. 브라우저를 열고 다음 주소로 접속하세요: https://yourdomain.com
메모
- Dockge는 사용합니다
/var/run/docker.sockDocker를 제어하기 위해 - Nginx는 HTTPS로 설정되어 있으며, HTTP 요청을 HTTPS로 리디렉션합니다.
- Dockge UI만 HTTP를 사용하며, 다른 앱은
http://<IP>:<PORT>(자동 HTTPS 없음).