ChangeDetection.io를 Docker로 설치하는 방법
페이지 정보
작성자
운영자
작성일
08.23 09:36
116 조회
본문
방법 1: Docker Compose 사용 (권장)
1. 작업 디렉토리 생성
bash
mkdir -p ~/changedetection
cd ~/changedetection
2. docker-compose.yml 파일 작성
bash
nano docker-compose.yml
아래 내용을 입력:
yaml
version: '3.8'
services:
changedetection:
image: ghcr.io/dgtlmoon/changedetection.io
container_name: changedetection
restart: unless-stopped
volumes:
- ./datastore:/datastore
ports:
- 5000:5000
environment:
- BASE_URL=http://localhost:5000
# Playwright(자바스크립트 렌더링)를 쓰려면 아래 브라우저리스 서비스 추가
depends_on:
- browser-chrome
browser-chrome:
image: browserless/chrome
container_name: browser-chrome
restart: unless-stopped
environment:
- CONNECTION_TIMEOUT=300000
- MAX_CONCURRENT_SESSIONS=10
- PREBOOT_CHROME=true
3. 컨테이너 실행
bash
docker compose up -d
4. 접속 확인
브라우저에서 http://<서버IP>:5000 접속 (예: http://192.168.31.207:5000)
방법 2: docker run 명령어만으로 (Playwright 없이 간단히)
bash
docker run -d \
--name changedetection \
--restart unless-stopped \
-p 5000:5000 \
-v ~/changedetection/datastore:/datastore \
ghcr.io/dgtlmoon/changedetection.io
참고 사항
datastore 볼륨: 감시 목록, 히스토리, 설정 파일이 저장되므로
반드시 마운트해서 데이터 유실 방지
자바스크립트 렌더링이 필요한 사이트(SPA 등)를 감지하려면
browser-chrome(또는 sockpuppetbrowser) 컨테이너를 함께 띄우고,
ChangeDetection 웹 UI의 설정(Settings → Fetching)에서
Playwright/Chrome 엔드포인트를 ws://browser-chrome:3000 형태로 지정
업데이트: docker compose pull && docker compose up -d
로그 확인: docker logs -f changedetection
1. 작업 디렉토리 생성
bash
mkdir -p ~/changedetection
cd ~/changedetection
2. docker-compose.yml 파일 작성
bash
nano docker-compose.yml
아래 내용을 입력:
yaml
version: '3.8'
services:
changedetection:
image: ghcr.io/dgtlmoon/changedetection.io
container_name: changedetection
restart: unless-stopped
volumes:
- ./datastore:/datastore
ports:
- 5000:5000
environment:
- BASE_URL=http://localhost:5000
# Playwright(자바스크립트 렌더링)를 쓰려면 아래 브라우저리스 서비스 추가
depends_on:
- browser-chrome
browser-chrome:
image: browserless/chrome
container_name: browser-chrome
restart: unless-stopped
environment:
- CONNECTION_TIMEOUT=300000
- MAX_CONCURRENT_SESSIONS=10
- PREBOOT_CHROME=true
3. 컨테이너 실행
bash
docker compose up -d
4. 접속 확인
브라우저에서 http://<서버IP>:5000 접속 (예: http://192.168.31.207:5000)
방법 2: docker run 명령어만으로 (Playwright 없이 간단히)
bash
docker run -d \
--name changedetection \
--restart unless-stopped \
-p 5000:5000 \
-v ~/changedetection/datastore:/datastore \
ghcr.io/dgtlmoon/changedetection.io
참고 사항
datastore 볼륨: 감시 목록, 히스토리, 설정 파일이 저장되므로
반드시 마운트해서 데이터 유실 방지
자바스크립트 렌더링이 필요한 사이트(SPA 등)를 감지하려면
browser-chrome(또는 sockpuppetbrowser) 컨테이너를 함께 띄우고,
ChangeDetection 웹 UI의 설정(Settings → Fetching)에서
Playwright/Chrome 엔드포인트를 ws://browser-chrome:3000 형태로 지정
업데이트: docker compose pull && docker compose up -d
로그 확인: docker logs -f changedetection
댓글 0