Made InfluxDB optional

Set Flagsmuth on Flagsmith to point to the production flagsmith feature setup
pull/11/head
Ben Rometsch 4 years ago
parent c006d59c92
commit 2959da3fb1

@ -1,3 +1,5 @@
# See https://docs.flagsmith.com/docker/ for more information on running Flagsmith in Docker
version: "3" version: "3"
services: services:
api: api:
@ -5,18 +7,17 @@ services:
environment: environment:
DJANGO_ALLOWED_HOSTS: "*" # Change this in production DJANGO_ALLOWED_HOSTS: "*" # Change this in production
DATABASE_URL: postgresql://postgres:password@db:5432/flagsmith DATABASE_URL: postgresql://postgres:password@db:5432/flagsmith
INFLUXDB_URL: http://influxdb:8086 # INFLUXDB_URL: http://influxdb:8086
INFLUXDB_BUCKET: flagsmith_api # INFLUXDB_BUCKET: flagsmith_api
INFLUXDB_ORG: # Add your influx org id here - see readme.md # INFLUXDB_ORG: # Add your influx org id here - see readme.md
INFLUXDB_TOKEN: # Add your influx token here - see readme.md # INFLUXDB_TOKEN: # Add your influx token here - see readme.md
ports: ports:
- "8000:8000" - "8000:8000"
depends_on: depends_on:
- db - db
links: links:
- db:db - db:db
- influxdb:influxdb # - influxdb:influxdb
container_name: flagsmith_api container_name: flagsmith_api
frontend: frontend:
@ -25,6 +26,8 @@ services:
# You might need to change the 2 host names below depending on your docker dns setup # You might need to change the 2 host names below depending on your docker dns setup
API_URL: http://localhost:8000/api/v1/ API_URL: http://localhost:8000/api/v1/
ASSET_URL: http://localhost:8080/ ASSET_URL: http://localhost:8080/
DISABLE_INFLUXDB_FEATURES: 1 # Switch to 0 to enable InfluxDB
FLAGSMITH: 4vfqhypYjcPoGGu8ByrBaj # This is the production Flagsmith API key
ports: ports:
- "8080:8080" - "8080:8080"
links: links:
@ -38,9 +41,10 @@ services:
POSTGRES_DB: flagsmith POSTGRES_DB: flagsmith
container_name: flagsmith_postgres container_name: flagsmith_postgres
influxdb: # InfluxDB requires additional setup - please see https://docs.flagsmith.com/deployment-overview/#influxdb
image: quay.io/influxdb/influxdb:v2.0.3 # Note that InfluxDB is optional, but enabling it will provide additional functionality to the Flagsmith platform
container_name: flagsmith_influxdb # influxdb:
ports: # image: quay.io/influxdb/influxdb:v2.0.3
- "8086:8086" # container_name: flagsmith_influxdb
# ports:
# - "8086:8086"

Loading…
Cancel
Save