Sign inSign up

qazbnm456/dockerized_fbctf

By qazbnm456

Updated over 10 years ago

It's more easier for you to run fbctf in dev or prod mode. (Image here is in dev mode)

Image
4

4.1K

qazbnm456/dockerized_fbctf repository overview

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 | qazbnm456/dockerized_fbctf


##Table of contents

Quick Start
Thanks

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 \
    mysql:5.5

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 \
	qazbnm456/dockerized_fbctf:multi_containers

Thanks

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.

Tag summary

Content type

Image

Digest

Size

479.8 MB

Last updated

over 10 years ago

docker pull qazbnm456/dockerized_fbctf