CTFd infra with Docker Compose
Make sure you have Docker and Docker Compose set up on your server.
mv env.example .env
Then configure database details in .env
with your preferred text editor
Note: this can be replaced with
NGINX
orApache
, I'm usingCaddy
here just for convenience.
- Make sure everything is working properly (use command in Launch part) with default configuration (You may need to point
ctfd.test
to your server inhosts
on your local machine for testing) - Change
ctfd.test:80
inCaddyfile
to the actual domain to be used, Do not include port number to allow HTTPS traffic
docker-compose up -d
And you are all set 🎉! Allow a few minutes for Caddy to configure Let's Encrypt automatically, then your CTFd server should go live on the domain specified.