Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- postgres:
- image: postgres:11.12-alpine
- container_name: flagsmith_db
- restart: always
- environment:
- POSTGRES_PASSWORD: password
- POSTGRES_DB: flagsmith
- ports:
- - "5432:5432"
- flagsmith:
- image: flagsmith/flagsmith:latest
- container_name: flagsmith
- restart: always
- environment:
- # All environments variables are available here:
- # API: https://docs.flagsmith.com/deployment/locally-api#environment-variables
- # UI: https://docs.flagsmith.com/deployment/locally-frontend#environment-variables
- DJANGO_ALLOWED_HOSTS: "*" # Change this in production
- DATABASE_URL: "postgresql://postgres:password@flagsmith_db:5432/flagsmith"
- DISABLE_INFLUXDB_FEATURES: "true" # set to false to enable InfluxDB
- ENV: "prod" # set to "prod" in production.
- # For more info on configuring InfluxDB - https://docs.flagsmith.com/deployment/overview#influxdb
- # INFLUXDB_URL: http://influxdb:8086
- # INFLUXDB_BUCKET: flagsmith_api
- # INFLUXDB_ORG: # Add your influx org id here
- # INFLUXDB_TOKEN: # Add your influx token here
- # For more info on configuring E-Mails - https://docs.flagsmith.com/deployment/locally-api#environment-variables
- # Example SMTP:
- # EMAIL_BACKEND: django.core.mail.backends.smtp.EmailBackend
- # EMAIL_HOST: mail.example.com
- # SENDER_EMAIL: flagsmith@example.com
- # EMAIL_HOST_USER: flagsmith@example.com
- # EMAIL_HOST_PASSWORD: smtp_account_password
- # EMAIL_PORT: 587 # 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:
- - '8000:8000'
- depends_on:
- - postgres
- # - influxdb
- links:
- - postgres
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement