Docker
You can use docker to set up an entire Flagsmith Feature Flag environment locally:
curl -o docker-compose.yml https://raw.githubusercontent.com/Flagsmith/flagsmith/main/docker-compose.yml
docker-compose -f docker-compose.yml up
Wait for the images to download and run, then visit http://localhost:8000/
. As a first step, you will need to create a
new account at http://localhost:8000/signup
Environment Variables
As well as the Environment Variables specified in the API and Front End you can also specify the following:
GUNICORN_CMD_ARGS
: Gunicorn command line arguments. Overrides Flagsmith's defaults. See Gunicorn documentation for reference.GUNICORN_WORKERS
: The number of Gunicorn Workers that are createdGUNICORN_THREADS
: The number of Gunicorn Threads per WorkerGUNICORN_TIMEOUT
: The number of seconds before the Gunicorn times outACCESS_LOG_FORMAT
: Message format for Gunicorn's access log. See variable details to define your own format.ACCESS_LOG_LOCATION
: The location to write access logs to. If set to-
, the logs will be sent tostdout
Platform Architectures
Our Docker images are built against the following CPU architectures:
amd64
linux/arm64
linux/arm/v7