|
|
@ -1,8 +1,12 @@
|
|
|
|
# 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 neccesary but adds some functionality that requires InfluxDB)
|
|
|
|
# Uncomment and configure InfluxDB lines below (not necessary but adds some functionality that requires InfluxDB)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
version: "3"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
|
|
pgdata:
|
|
|
|
|
|
|
|
|
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
postgres:
|
|
|
|
image: postgres:11.12-alpine
|
|
|
|
image: postgres:11.12-alpine
|
|
|
@ -10,6 +14,8 @@ services:
|
|
|
|
POSTGRES_PASSWORD: password
|
|
|
|
POSTGRES_PASSWORD: password
|
|
|
|
POSTGRES_DB: flagsmith
|
|
|
|
POSTGRES_DB: flagsmith
|
|
|
|
container_name: flagsmith_postgres
|
|
|
|
container_name: flagsmith_postgres
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
|
|
- pgdata:/var/lib/postgresql/data
|
|
|
|
|
|
|
|
|
|
|
|
flagsmith:
|
|
|
|
flagsmith:
|
|
|
|
image: flagsmith/flagsmith:latest
|
|
|
|
image: flagsmith/flagsmith:latest
|
|
|
@ -17,11 +23,10 @@ services:
|
|
|
|
# All environments variables are available here:
|
|
|
|
# All environments variables are available here:
|
|
|
|
# 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
|
|
|
|
DJANGO_ALLOWED_HOSTS: '*' # Change this in production
|
|
|
|
|
|
|
|
DATABASE_URL: postgresql://postgres:password@postgres:5432/flagsmith
|
|
|
|
DATABASE_URL: postgresql://postgres:password@postgres:5432/flagsmith
|
|
|
|
DISABLE_INFLUXDB_FEATURES: 'true' # set to 'false' to enable InfluxDB
|
|
|
|
DISABLE_INFLUXDB_FEATURES: "true" # set to 'false' to enable InfluxDB
|
|
|
|
|
|
|
|
|
|
|
|
ENV: prod # set to "prod" in production.
|
|
|
|
ENV: prod # set to "prod" in production.
|
|
|
|
|
|
|
|
|
|
|
@ -41,14 +46,12 @@ services:
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
- '8000:8000'
|
|
|
|
- "8000:8000"
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- postgres
|
|
|
|
# - influxdb
|
|
|
|
# - influxdb
|
|
|
@ -62,4 +65,4 @@ services:
|
|
|
|
# image: quay.io/influxdb/influxdb:v2.0.3
|
|
|
|
# image: quay.io/influxdb/influxdb:v2.0.3
|
|
|
|
# container_name: flagsmith_influxdb
|
|
|
|
# container_name: flagsmith_influxdb
|
|
|
|
# ports:
|
|
|
|
# ports:
|
|
|
|
# - "8086:8086"
|
|
|
|
# - "8086:8086"
|
|
|
|