CTFd-docker-deploy
CTFd-docker-deploy copied to clipboard
Repository to deploy CTFd using docker.
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
- 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:
- Or:
- Run the
setupenv.shscript from this folder.
- Run the
- Run
run.shordocker-compose up.
How to use this repository to start a CTFd instance with TLS
- 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.