Deploying ccaa with Docker for Offline Download and Online Streaming

Publish: 2020-05-01 | Modify: 2020-05-01

CCAA integrates AriaNg + Aria2 + FileBrowser, which enables offline downloading and online streaming. It supports one-click installation on Debian/Ubuntu/CentOS and can also be deployed using Docker, making installation and usage simple.

Docker Installation

Installing Docker

If you are unsure how to install Docker, please refer to this article: Linux Installation of Docker and Common Docker Commands

Deploying the ccaa Docker image

After installing Docker, simply copy the following command to deploy CCAA:

docker run --name="ccaa" -d -p 6080:6080 -p 6081:6081 -p 6800:6800 -p 51413:51413 \
    -v /data/ccaaDown:/data/ccaaDown \
    -e PASS="xiaoz.me" \
    helloz/ccaa \
    sh -c "dccaa pass && dccaa start"
  • The first /data/ccaaDown is the local directory where CCAA will save downloaded content. Please set it according to your own situation.
  • xiaoz.me is the Aria2 secret key. Please modify it to your own password when running.
  • The default username for file management is ccaa, and the password is admin. After logging in, you can modify it in the background.

Opening Ports

CCAA uses TCP ports: 6080/6081/6800/51413. Please make sure to open these ports in your firewall and security group, otherwise you won't be able to access it.

# If using iptables
iptables -I INPUT -p tcp --dport 6080 -j ACCEPT
iptables -I INPUT -p tcp --dport 6081 -j ACCEPT
iptables -I INPUT -p tcp --dport 6800 -j ACCEPT
iptables -I INPUT -p tcp --dport 51413 -j ACCEPT
service iptables save
service iptables restart
# If using firewalld
firewall-cmd --zone=public --add-port=6080/tcp --permanent
firewall-cmd --zone=public --add-port=6081/tcp --permanent
firewall-cmd --zone=public --add-port=6800/tcp --permanent
firewall-cmd --zone=public --add-port=51413/tcp --permanent
firewall-cmd --reload

After opening the ports, you can access the AriaNg interface at http://IP:6080.

AriaNg Interface

Managing CCAA

Use Docker commands to manage CCAA:

# Start CCAA
docker start ccaa
# Stop CCAA
docker stop ccaa
# Restart CCAA
docker restart ccaa
# If you want CCAA to start automatically on system boot
docker update --restart=always ccaa

Finally

For more usage instructions, please refer to the documentation: https://www.yuque.com/helloz/ccaa/. If you have any questions, please leave a message on the blog or on Github.


Comments