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-deploy
by default) - Either:
- Install
docker
based on the instructions here. - Install
docker-compose
based on the instructions here. - Copy the contents of the https://github.com/CTFd/CTFd repository into this
CTFd-docker-deploy
folder.
- Install
- Or:
- Run the
setupenv.sh
script from this folder.
- Run the
- Run
run.sh
ordocker-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.crt
andctfd.key
respectively in thessl
directory in your cloned repository. - Edit the
hostname
line in thedocker-compose-production.yml
file to match the hostname you have defined to point to this server. - Run
run-tls.sh
ordocker-compose -f docker-compose.yml -f docker-compose-production.yml up
.