Git Product home page Git Product logo

ctfpad-docker's Introduction

CTFPad Docker Container

Dockerized version of CTFPad by StratumAuhuur.

Setup

docker pull lucebac/ctfpad

Run

It is recommended to use docker-compose to run an manage this container. An example compose file is provided below.

Config

version: '3'

services:
    ctfpad:
        image: lucebac/ctfpad
        
        ports:
            # ctfpad port
            - "4242:4242"
            # etherpad proxy port
            - "4343:4343"
            
        environment:
            # ctfpad port
            - CTFPAD_PORT=4242
            
            # set both of the following to 'true' if you
            # want to have ctfpad/etherpad use ssl directly
            - CTFPAD_USE_HTTPS=false
            - CTFPAD_PROXY_USE_HTTPS=false

            # default certificates are generated and put to
            # /data/{key,cert}.pem; change this if you e.g.
            # want to use let's encrypt certificates
            - CTFPAD_SSL_KEY_FILE=/data/key.pem
            - CTFPAD_SSL_CERT_FILE=/data/cert.pem

            # authentication key for new signups
            - CTFPAD_AUTHKEY=ctfpad

            # etherpad proxy port
            - ETHERPAD_PORT=4343
            # internal etherpad port; you may not change 
            # this unless you really need to
            - ETHERPAD_INTERNAL_PORT=9001

            # it's strongly recommended to use mysql or 
            # mariadb for etherpad's data storage; 
            # set credentials here
            - MYSQL_HOST=
            - MYSQL_USER=
            - MYSQL_PASSWORD=

        volumes:
            - ./ctfpad_data:/data:z

If you want to change the ports CTFPad will listen on, make sure to both change the docker ports and the environment variables. Otherwise, at least the etherpad istance will not be reachable.

You need to remove and recreate the container if you want to change settings for a running instance if CTFPad. You can use the following snippet:

docker-compose stop ctfpad
docker-compose rm -f ctfpad
docker-compose up -d --no-deps ctfpad

ctfpad-docker's People

Contributors

lucebac avatar sycramore avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.