Advertisement
techblog

FlagSmith-compose

Dec 5th, 2021
1,101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.11 KB | None | 0 0
  1. version: '3'
  2. services:
  3.     postgres:
  4.         image: postgres:11.12-alpine
  5.         container_name: flagsmith_db
  6.         restart: always
  7.         environment:
  8.             POSTGRES_PASSWORD: password
  9.             POSTGRES_DB: flagsmith
  10.         ports:
  11.          - "5432:5432"
  12.     flagsmith:
  13.         image: flagsmith/flagsmith:latest
  14.         container_name: flagsmith
  15.         restart: always
  16.         environment:
  17.            # All environments variables are available here:
  18.             # API: https://docs.flagsmith.com/deployment/locally-api#environment-variables
  19.             # UI: https://docs.flagsmith.com/deployment/locally-frontend#environment-variables
  20.           DJANGO_ALLOWED_HOSTS: "*" # Change this in production
  21.           DATABASE_URL: "postgresql://postgres:password@flagsmith_db:5432/flagsmith"
  22.           DISABLE_INFLUXDB_FEATURES: "true" # set to false to enable InfluxDB
  23.           ENV: "prod" # set to "prod" in production.
  24.  
  25.             # For more info on configuring InfluxDB - https://docs.flagsmith.com/deployment/overview#influxdb
  26.             # INFLUXDB_URL: http://influxdb:8086
  27.             # INFLUXDB_BUCKET: flagsmith_api
  28.             # INFLUXDB_ORG: # Add your influx org id here
  29.             # INFLUXDB_TOKEN: # Add your influx token here
  30.             # For more info on configuring E-Mails - https://docs.flagsmith.com/deployment/locally-api#environment-variables
  31.             # Example SMTP:
  32.             # EMAIL_BACKEND: django.core.mail.backends.smtp.EmailBackend
  33.             # EMAIL_HOST: mail.example.com
  34.             # SENDER_EMAIL: flagsmith@example.com
  35.             # EMAIL_HOST_USER: flagsmith@example.com
  36.             # EMAIL_HOST_PASSWORD: smtp_account_password
  37.             # EMAIL_PORT: 587 # optional
  38.             # EMAIL_USE_TLS: True # optional
  39.             # ENABLE_ADMIN_ACCESS_USER_PASS: True # set to True to enable access to the /admin/ Django backend via your username and password
  40.             # ALLOW_REGISTRATION_WITHOUT_INVITE: True
  41.         ports:
  42.            - '8000:8000'
  43.         depends_on:
  44.            - postgres
  45.             # - influxdb
  46.         links:
  47.            - postgres
  48.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement