Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huangzheng2016/CTFd-docker
用Docker一键配置CTFd,此版本的CTFd集合Whale/Owl等插件,可以实现docker-compose/dockerfile/swarm启动容器
https://github.com/huangzheng2016/CTFd-docker
ctfd ctfd-plugin docker docker-compose
Last synced: 3 months ago
JSON representation
用Docker一键配置CTFd,此版本的CTFd集合Whale/Owl等插件,可以实现docker-compose/dockerfile/swarm启动容器
- Host: GitHub
- URL: https://github.com/huangzheng2016/CTFd-docker
- Owner: huangzheng2016
- License: apache-2.0
- Created: 2022-03-27T07:21:32.000Z (over 2 years ago)
- Default Branch: 3.6.1
- Last Pushed: 2024-01-19T09:16:56.000Z (11 months ago)
- Last Synced: 2024-01-19T12:28:29.321Z (11 months ago)
- Topics: ctfd, ctfd-plugin, docker, docker-compose
- Language: Python
- Homepage: https://0e7.cn/CTFd-docker
- Size: 46.5 MB
- Stars: 24
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-hacking-lists - huangzheng2016/CTFd-docker - 用Docker一键配置CTFd,此版本的CTFd集合Whale/Owl等插件,可以实现docker-compose/dockerfile/swarm启动容器 (Python)
README
# CTFd-docker
可以快速使用Docker一键配置CTFd此版本的CTFd集合Whale插件,用以部署动态容器挑战
[CTFd-docker配置参考](https://blog.hz2016.com/2022/03/%e3%80%90ctfd%e3%80%91%e9%9d%b6%e5%9c%ba%e5%ae%89%e8%a3%85%e4%b8%8e%e9%85%8d%e7%bd%ae%ef%bc%88docker%e4%b8%80%e9%94%ae%e9%85%8d%e7%bd%ae%e7%89%88%ef%bc%89/)
## 快速安装
在Ubuntu20.04、Ubuntu22.04、Kali 23.3、macOS 14.2+orbStack下完成过测试
你需要修改docker-compose.yml中的CTFD_URL、DIRECT_URL、DYNAMIC_URL,并在DNS服务器上做解析
>如果你要在本机进行测试,你可以使用如下host设置
```
127.0.0.1 ctfd.test.com
127.0.0.1 direct.test.com
127.0.0.1 dynamic.test.com
```脚本第一次执行时会自动初始化配置,初始化后将无法自动修改,你需要手动根据sed.sh脚本修改相应的值或后台配置
```
sudo apt install git -y
git clone https://github.com/huangzheng2016/CTFd-docker CTFd
vi CTFd/docker-compose.yml
#修改CTFD_URL、DIRECT_URL、DYNAMIC_URL,并在DNS服务器上做解析
sudo sh CTFd/install.sh
```虽然还是建议大家自己安装,别直接脚本,以免出现配置不正确
请在root权限下执行
```
apt-get update
apt-get install git docker docker-compose -y
#如果docker安装失败
#apt-get install git docker.io docker-compose -y
git clone https://github.com/huangzheng2016/CTFd-docker CTFd
docker swarm init --advertise-addr 127.0.0.1
docker node update --label-add='name=linux-1' $(docker node ls -q)
docker-compose -f CTFd/docker-compose.yml up -d
```## 更新日志
2024.1.19
>修改默认主题为core
>
>core-beta主题暂不支持(等官方beta版搞完再做适配)