/CTFd-docker-deploy

Repository to deploy CTFd using docker.

Primary LanguageDockerfile

CTFd-docker-deploy

Repository to deploy CTFd using docker.

Brief instructions follow but you can also refer to a blogpost about how I used this setup .

How to use this repository to start a CTFd instance without TLS

  1. Install docker based on the instructions here.
  2. Install docker-compose based on the instructions here.
  3. Clone this repository by running git clone https://github.com/tghosth/CTFd-docker-deploy.git.
  4. Go into the directory which the repository was cloned into (CTFd-docker-deploy by default)
  5. Run docker-compose up.

How to use this repository to start a CTFd instance with TLS

  1. Follow steps 1 to 4 from the previous section.
  2. Setup your DNS records to point to the server where you are starting CTFd.
  3. Get a TLS certificate and private key from a Certificate Authority and save them as ctfd.crt and ctfd.key respectively in the ssl directory in your cloned repository.
  4. Edit the hostname line in the docker-compose-production.yml file to match the hostname you have defined to point to this server.
  5. Run docker-compose -f docker-compose-production.yml up.