Basic Deployment

Kevin Chung edited this page Aug 1, 2018 · 3 revisions

CTFd can be deployed as a standard wsgi application. However, the simplest means of deploying a CTFd instance is to use Docker Compose.

  1. Install Docker
  2. Install Docker Compose
  3. Clone the CTFd repository with git clone https://github.com/CTFd/CTFd.git
  4. Modify the docker-compose.yml file from the repository to specify a SECRET_KEY environment for the CTFd service.
    • You can also run python -c "import os; f=open('.ctfd_secret_key', 'a+'); f.write(os.urandom(64)); f.close()" within the CTFd repo to generate a .ctfd_secret_key file.
  environment:
    - SECRET_KEY=<SPECIFY_RANDOM_VALUE>
    - UPLOAD_FOLDER=/var/uploads
    - LOG_FOLDER=/var/log/CTFd
    - DATABASE_URL=mysql+pymysql://root:ctfd@db/ctfd
    - REDIS_URL=redis://cache:6379
    - WORKERS=4
  1. Run docker-compose up
  2. You should now be able to access CTFd at http://localhost:8000

If you're interested in a more advanced deployment read the Advanced Deployment page or contact support@ctfd.io for an Enterprise Deployment.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.