|
|
@ -1,6 +1,5 @@
|
|
|
|
# See https://docs.flagsmith.com/deployment/docker for more information on running Flagsmith in Docker
|
|
|
|
# See https://docs.flagsmith.com/deployment/docker for more information on running Flagsmith in Docker
|
|
|
|
# This will docker-compose file will run the entire Flagsmith Platform in Docker
|
|
|
|
# This will docker-compose file will run the entire Flagsmith Platform in Docker
|
|
|
|
# Uncomment and configure InfluxDB lines below (not necessary but adds some functionality that requires InfluxDB)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
version: "3"
|
|
|
|
version: "3"
|
|
|
|
|
|
|
|
|
|
|
@ -24,17 +23,18 @@ services:
|
|
|
|
# API: https://docs.flagsmith.com/deployment/locally-api#environment-variables
|
|
|
|
# API: https://docs.flagsmith.com/deployment/locally-api#environment-variables
|
|
|
|
# UI: https://docs.flagsmith.com/deployment/locally-frontend#environment-variables
|
|
|
|
# UI: https://docs.flagsmith.com/deployment/locally-frontend#environment-variables
|
|
|
|
|
|
|
|
|
|
|
|
DJANGO_ALLOWED_HOSTS: "*" # Change this in production
|
|
|
|
|
|
|
|
DATABASE_URL: postgresql://postgres:password@postgres:5432/flagsmith
|
|
|
|
|
|
|
|
DISABLE_INFLUXDB_FEATURES: "true" # set to 'false' to enable InfluxDB
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ENV: prod # set to "prod" in production.
|
|
|
|
ENV: prod # set to "prod" in production.
|
|
|
|
|
|
|
|
DJANGO_ALLOWED_HOSTS: '*' # Change this in production
|
|
|
|
|
|
|
|
DATABASE_URL: postgresql://postgres:password@postgres:5432/flagsmith
|
|
|
|
|
|
|
|
USE_POSTGRES_FOR_ANALYTICS: 'True' # Store API and Flag Analytics data in Postgres
|
|
|
|
|
|
|
|
# PREVENT_SIGNUP: 'True' # Uncomment to prevent additional signups
|
|
|
|
|
|
|
|
# ENABLE_ADMIN_ACCESS_USER_PASS: True # set to True to enable access to the /admin/ Django backend via your username and password
|
|
|
|
|
|
|
|
# ALLOW_REGISTRATION_WITHOUT_INVITE: True
|
|
|
|
|
|
|
|
|
|
|
|
# For more info on configuring InfluxDB - https://docs.flagsmith.com/deployment/overview#influxdb
|
|
|
|
# Enable Task Processor
|
|
|
|
# INFLUXDB_URL: http://influxdb:8086
|
|
|
|
# To use task processor service, uncomment line below and additional 'flagsmith_processor'
|
|
|
|
# INFLUXDB_BUCKET: flagsmith_api
|
|
|
|
# container below
|
|
|
|
# INFLUXDB_ORG: # Add your influx org id here
|
|
|
|
TASK_RUN_METHOD: TASK_PROCESSOR # other options are: SYNCHRONOUSLY, SEPARATE_THREAD (default)
|
|
|
|
# INFLUXDB_TOKEN: # Add your influx token here
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# For more info on configuring E-Mails - https://docs.flagsmith.com/deployment/locally-api#environment-variables
|
|
|
|
# For more info on configuring E-Mails - https://docs.flagsmith.com/deployment/locally-api#environment-variables
|
|
|
|
#
|
|
|
|
#
|
|
|
@ -47,22 +47,25 @@ services:
|
|
|
|
# EMAIL_PORT: 587 # optional
|
|
|
|
# EMAIL_PORT: 587 # optional
|
|
|
|
# EMAIL_USE_TLS: True # optional
|
|
|
|
# EMAIL_USE_TLS: True # optional
|
|
|
|
|
|
|
|
|
|
|
|
# ENABLE_ADMIN_ACCESS_USER_PASS: True # set to True to enable access to the /admin/ Django backend via your username and password
|
|
|
|
|
|
|
|
# ALLOW_REGISTRATION_WITHOUT_INVITE: True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
|
|
|
- "8000:8000"
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- postgres
|
|
|
|
# - influxdb
|
|
|
|
|
|
|
|
links:
|
|
|
|
links:
|
|
|
|
- postgres
|
|
|
|
- postgres
|
|
|
|
# - influxdb:influxdb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# InfluxDB requires additional setup - please see https://docs.flagsmith.com/deployment-overview/#influxdb
|
|
|
|
flagsmith_processor:
|
|
|
|
# Note that InfluxDB is optional, but enabling it will provide additional functionality to the Flagsmith platform
|
|
|
|
image: flagsmith/flagsmith:latest
|
|
|
|
# influxdb:
|
|
|
|
environment:
|
|
|
|
# image: quay.io/influxdb/influxdb:v2.0.3
|
|
|
|
DATABASE_URL: postgresql://postgres:password@postgres:5432/flagsmith
|
|
|
|
# container_name: flagsmith_influxdb
|
|
|
|
entrypoint:
|
|
|
|
# ports:
|
|
|
|
- "python"
|
|
|
|
# - "8086:8086"
|
|
|
|
- "manage.py"
|
|
|
|
|
|
|
|
- "runprocessor"
|
|
|
|
|
|
|
|
- "--sleepintervalms"
|
|
|
|
|
|
|
|
- "500"
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
|
|
|
|
- flagsmith
|
|
|
|
|
|
|
|
- postgres
|
|
|
|
|
|
|
|
links:
|
|
|
|
|
|
|
|
- postgres
|
|
|
|