Public | Automated Build

Last pushed: 2 years ago
Short Description
It's more easier for you to run fbctf in dev or prod mode. (Image here is in dev mode)
Full Description

Dockerized image for FBCTF (Multi Containers Version)

This is the Git repo of the dockerized_fbctf:multi_containers image. It's more easier for you to setup fbctf with other orchestration.

Relevant links:
facebook/fbctf |
AlexGaspar/docker-fbctf |
alexgaspar/fbctf |

##Table of contents

Quick Start


<a name="start"></a>

Quick Start

fbctf needs to be server over https, so by default it would generate a self-signed certificate, if you want to use your own certificate you can turn this off by setting $SSL to false, then fbctf container will only server request over :80, so you can do the SSL termination where ever you prefer.

Using docker-compose

docker-compose up

Step 1. Launch a mysql container

docker run --name fbctf-mysql -d \
    --env MYSQL_ROOT_PASSWORD=root \
    --env MYSQL_DATABASE=fbctf \
    --env MYSQL_USER=fbctf --env MYSQL_PASSWORD=fbctf \
    --volume /opt/docker/fbctf/mysql:/var/lib/mysql \

Step 2. Launch a memcached container

docker run --name fbctf-memcached -d memcached

Step 3. Launch the fbctf container

docker run --name fbctf -d \
    -p 10080:80 \
    --env MYSQL_USER=fbctf \
    --env MYSQL_PASSWORD=fbctf \
    --env MYSQL_PORT=3306 \
    --env MYSQL_DATABASE=fbctf \
    --env MEMCACHED_PORT=11211 \
    --link fbctf-memcached:memcached \
    --link fbctf-mysql:mysql \

<a name="thanks"></a>


Due to a great suggestion mentioned here, AlexGaspar and I work together with the concept of splitting the resources into multiple containers. I modify some code to fit my needs here, and you may find original one: AlexGaspar/docker-fbctf.

Docker Pull Command
Source Repository