forked from Flagsmith/flagsmith
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.uffizzi.yml
102 lines (89 loc) · 3.75 KB
/
docker-compose.uffizzi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# 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
# Uncomment and configure InfluxDB lines below (not neccesary but adds some functionality that requires InfluxDB)
version: '3'
# uffizzi integration
x-uffizzi:
ingress:
service: nginx
port: 8081
services:
nginx:
image: nginx:alpine
volumes:
- ./nginx-uffizzi:/etc/nginx
postgres:
image: postgres
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: flagsmith
POSTGRES_USER: postgres
flagsmith:
image: ${FLAGSMITH_IMAGE}
ports:
- 8000:8000
deploy:
resources:
limits:
memory: 2000M
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@localhost:5432/flagsmith
DISABLE_ANALYTICS_FEATURES: 'true' # set to false to enable InfluxDB
PREVENT_SIGNUP: 'false'
ENABLE_ADMIN_ACCESS_USER_PASS: 'true'
DJANGO_SECRET_KEY: '**SoMeTeMpOrArYsEcReT!!'
EMAIL_BACKEND: 'django.core.mail.backends.console.EmailBackend'
ENV:
dev # set to "prod" in production.
# For more info on configuring InfluxDB - https://docs.flagsmith.com/deployment/overview#influxdb
# INFLUXDB_URL: http://localhost:8086/influx
# 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: [email protected]
# EMAIL_HOST_USER: [email protected]
# 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
# 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)
# Run the asynchronous task processor as a separate container alongside the API.
# When enabled, the API will write tasks to a queue (in the PostgreSQL database) for
# the processor to consume asynchronously.
# Documentation on the processor can be found here:
# https://docs.flagsmith.com/advanced-use/task-processor
# flagsmith_processor:
# build:
# dockerfile: api/Dockerfile
# context: .
# environment:
# DATABASE_URL: postgresql://postgres:password@postgres:5432/flagsmith
# command:
# - "python"
# - "manage.py"
# - "runprocessor"
# - "--sleepintervalms"
# - "500"
# depends_on:
# - flagsmith
# - postgres
# InfluxDB requires additional setup - please see https://docs.flagsmith.com/deployment-overview/#influxdb
# Note that InfluxDB is optional, but enabling it will provide additional functionality to the Flagsmith platform
# influxdb:
# image: quay.io/influxdb/influxdb:v2.0.3
# container_name: flagsmith_influxdb
# ports:
# - "8086:8086"