Dagu 웹 UI 접속
- 브라우저를 열고 아래 주소로 이동하세요:
http://<SERVER_IP>:8080/login(HTTP) - 다음 경로에 저장된 자격 증명으로 로그인하세요:
/root/.dagu-credentials
포트
- 웹 UI:
8080 - gRPC 코디네이터:
50055(내부)
중요 경로
시스템 구성:
/usr/local/bin/dagu # Binary
/etc/dagu/ # Env directory
/etc/systemd/system/dagu.service # Systemd service
서비스 모드 (시스템 수준):
/var/lib/dagu/
├── dags/ # Workflows
├── logs/ # Execution logs
├── data/ # History
├── suspend/ # Pause flags
└── base.yaml # Shared config
CLI 모드 (사용자 수준):
~/.config/dagu/
├── dags/ # Workflows
├── config.yaml # Configuration
└── base.yaml # Shared config
~/.local/share/dagu/
├── logs/ # Execution logs
├── data/ # History
└── suspend/ # Pause flags
서비스 관리
# Check service status
systemctl status dagu
# Start the service
systemctl start dagu
# Stop the service
systemctl stop dagu
# Restart the service
systemctl restart dagu
기본 CLI 사용법
# Show help / available commands
dagu --help
# Show installed version
dagu version
# Install Dagu skills (auto-detect supported tools)
dagu ai install
# Install non-interactively (auto-confirm all prompts)
dagu ai install --yes
# Install to a specific skills directory
dagu ai install --skills-dir ~/.agents/skills
# Start a DAG workflow from a file or named workflow
dagu start my-workflow.yaml
# Pass parameters to a DAG (after --)
dagu start my-workflow.yaml -- param1=value1 param2=value2
# Execute a command directly as a DAG step
dagu exec -- python script.py
# Example with arguments
dagu exec -- python script.py --input data.csv
첫 번째 워크플로 만들기 (CLI 모드)
DAGs 디렉토리 생성:
mkdir -p ~/.config/dagu/dags
다음 이름의 파일 생성 hello.yaml (/root/.config/dagu/dags/hello.yaml):
steps:
- name: hello
command: echo "Hello from Dagu"
워크플로 실행:
dagu start hello
첫 번째 워크플로 만들기 (웹 모드)
워크플로 파일 생성:
vim /var/lib/dagu/dags/hello.yaml
다음 내용을 추가하세요:
steps:
- name: hello
command: echo "Hello from Dagu"
실행 중인 서비스가 워크플로를 자동으로 감지합니다.
웹 UI에서 직접 실행할 수 있습니다.