diff --git a/docker-compose.yml b/docker-compose.yml index 7480694..d0ef80f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,17 +24,18 @@ services: # API: https://docs.flagsmith.com/deployment/locally-api#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. 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 + ALLOW_ADMIN_INITIATION_VIA_CLI: "true" # Change this in production + FLAGSMITH_DOMAIN: "localhost:8000" # Change this in production + # 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" # 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) # 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_PASSWORD: smtp_account_password # EMAIL_PORT: 587 # optional - # EMAIL_USE_TLS: True # optional + # EMAIL_USE_TLS: "true" # optional ports: - "8000:8000" @@ -54,11 +55,13 @@ services: links: - postgres + # The flagsmith_processor service is only needed if TASK_RUN_METHOD set to TASK_PROCESSOR + # in the application environment flagsmith_processor: image: flagsmith/flagsmith:latest environment: DATABASE_URL: postgresql://postgres:password@postgres:5432/flagsmith - USE_POSTGRES_FOR_ANALYTICS: "True" + USE_POSTGRES_FOR_ANALYTICS: "true" depends_on: - flagsmith - postgres