|
|
@ -24,17 +24,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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DATABASE_URL: postgresql://postgres:password@postgres:5432/flagsmith
|
|
|
|
|
|
|
|
USE_POSTGRES_FOR_ANALYTICS: "true" # Store API and Flag Analytics data in Postgres
|
|
|
|
|
|
|
|
|
|
|
|
ENV: prod # set to "prod" in production.
|
|
|
|
ENV: prod # set to "prod" in production.
|
|
|
|
DJANGO_ALLOWED_HOSTS: "*" # Change this in production
|
|
|
|
DJANGO_ALLOWED_HOSTS: "*" # Change this in production
|
|
|
|
DATABASE_URL: postgresql://postgres:password@postgres:5432/flagsmith
|
|
|
|
ALLOW_ADMIN_INITIATION_VIA_CLI: "true" # Change this in production
|
|
|
|
USE_POSTGRES_FOR_ANALYTICS: "True" # Store API and Flag Analytics data in Postgres
|
|
|
|
FLAGSMITH_DOMAIN: "localhost:8000" # Change this in production
|
|
|
|
# PREVENT_SIGNUP: 'True' # Uncomment to prevent additional signups
|
|
|
|
# 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
|
|
|
|
# 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
|
|
|
|
# ALLOW_REGISTRATION_WITHOUT_INVITE: "true"
|
|
|
|
|
|
|
|
|
|
|
|
# Enable Task Processor
|
|
|
|
# Enable Task Processor
|
|
|
|
# To use task processor service, uncomment line below and additional 'flagsmith_processor'
|
|
|
|
|
|
|
|
# container below
|
|
|
|
|
|
|
|
TASK_RUN_METHOD: TASK_PROCESSOR # other options are: SYNCHRONOUSLY, SEPARATE_THREAD (default)
|
|
|
|
TASK_RUN_METHOD: TASK_PROCESSOR # other options are: SYNCHRONOUSLY, SEPARATE_THREAD (default)
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
#
|
|
|
@ -45,7 +46,7 @@ services:
|
|
|
|
# EMAIL_HOST_USER: flagsmith@example.com
|
|
|
|
# EMAIL_HOST_USER: flagsmith@example.com
|
|
|
|
# EMAIL_HOST_PASSWORD: smtp_account_password
|
|
|
|
# EMAIL_HOST_PASSWORD: smtp_account_password
|
|
|
|
# EMAIL_PORT: 587 # optional
|
|
|
|
# EMAIL_PORT: 587 # optional
|
|
|
|
# EMAIL_USE_TLS: True # optional
|
|
|
|
# EMAIL_USE_TLS: "true" # optional
|
|
|
|
|
|
|
|
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
|
|
|
- "8000:8000"
|
|
|
@ -54,11 +55,13 @@ services:
|
|
|
|
links:
|
|
|
|
links:
|
|
|
|
- postgres
|
|
|
|
- postgres
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# The flagsmith_processor service is only needed if TASK_RUN_METHOD set to TASK_PROCESSOR
|
|
|
|
|
|
|
|
# in the application environment
|
|
|
|
flagsmith_processor:
|
|
|
|
flagsmith_processor:
|
|
|
|
image: flagsmith/flagsmith:latest
|
|
|
|
image: flagsmith/flagsmith:latest
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
DATABASE_URL: postgresql://postgres:password@postgres:5432/flagsmith
|
|
|
|
DATABASE_URL: postgresql://postgres:password@postgres:5432/flagsmith
|
|
|
|
USE_POSTGRES_FOR_ANALYTICS: "True"
|
|
|
|
USE_POSTGRES_FOR_ANALYTICS: "true"
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- flagsmith
|
|
|
|
- flagsmith
|
|
|
|
- postgres
|
|
|
|
- postgres
|
|
|
|