Repository to deploy CTFd using docker.
Brief instructions follow but you can also refer to a blogpost about how I used this setup .
- Clone this repository by running
git clone https://github.com/tghosth/CTFd-docker-deploy.git. - Go into the directory which the repository was cloned into (
CTFd-docker-deployby default) - Either:
- Install
dockerbased on the instructions here. - Install
docker-composebased on the instructions here. - Copy the contents of the https://github.com/CTFd/CTFd repository into this
CTFd-docker-deployfolder.
- Install
- Or:
- Run the
setupenv.shscript from this folder.
- Run the
- Run
run.shordocker-compose up.
- Follow steps 1 to 4 from the previous section.
- Setup your DNS records to point to the server where you are starting CTFd.
- Get a TLS certificate and private key from a Certificate Authority and save them as
ctfd.crtandctfd.keyrespectively in thessldirectory in your cloned repository. - Edit the
hostnameline in thedocker-compose-production.ymlfile to match the hostname you have defined to point to this server. - Run
run-tls.shordocker-compose -f docker-compose.yml -f docker-compose-production.yml up.