Repository to deploy CTFd using docker.
Brief instructions follow but you can also refer to a blogpost about how I used this setup .
- Install
docker
based on the instructions here. - Install
docker-compose
based on the instructions here. - 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) - Run
docker-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
docker-compose -f docker-compose-production.yml up
.