- Edit
docker-compose.yml
volumes:
- ./chal:/app/chal:ro
environment:
- PORT=8000
- SESSIONNAME=session
- DBNAME=instance.db
# Your Instancer Title
- TITLE=
# Instance port range
- MINPORT=30000
- MAXPORT=31000
# Instance Validity
- VALIDITY=3m
# Instance subnet prefix
- PREFIX=29
# Instance subnet pool
- SUBNETPOOL=10.200.0.0/16
# Challenge Dir
- CHALDIR=chal
- BASESCHEME=http
# Base host name. For example use aaa.com you will get <id>.aaa.com for instance host
- BASEHOST=
- CAPTCHA_SITE_KEY=
- CAPTCHA_SECRET_KEY=
# CTFD URL
- CTFDURL=
- PROXYMODE=true
- NCMODE=false
ports:
# Same as PORT environment
- 8000:8000
-
Move your challenge to
CHALDIR
-
Challenge docker-compose.yml example
version: '3'
services:
chal:
build: .
ports:
# Instancer will use ${PORT} to control your port
- ${PORT}:11111
volumes:
- /tmp/${ID}/userid:/userid:ro
networks:
default:
networks:
default:
ipam:
config:
# Instancer will use ${SUBNET<Number>} to control your subnet
- subnet: ${SUBNET0}
- Run
docker compose up -d
and wait for 2 minute