forked from Flagsmith/flagsmith
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 2.09 KB
/
docker-compose.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
# 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'
services:
api:
image: flagsmith/flagsmith-api:latest
environment:
DJANGO_ALLOWED_HOSTS: '*' # Change this in production
DATABASE_URL: postgresql://postgres:password@db:5432/flagsmith
# INFLUXDB_URL: http://influxdb:8086
# INFLUXDB_BUCKET: flagsmith_api
# INFLUXDB_ORG: # Add your influx org id here - see readme.md
# INFLUXDB_TOKEN: # Add your influx token here - see readme.md
ports:
- '8000:8000'
depends_on:
- db
links:
- db:db
# - influxdb:influxdb
container_name: flagsmith_api
frontend:
image: flagsmith/flagsmith-frontend:latest
environment:
# You might need to change the 2 host names below depending on your docker dns setup
FLAGSMITH_API_URL: http://localhost:8000/api/v1/
STATIC_ASSET_CDN_URL: http://localhost:8080/
ENABLE_INFLUXDB_FEATURES: 'false' # set to true to enable InfluxDB
FLAGSMITH_ON_FLAGSMITH_API_KEY: 4vfqhypYjcPoGGu8ByrBaj # This is the production Flagsmith API key
ports:
- '8080:8080'
links:
- api:api
container_name: flagsmith_frontend
db:
image: postgres:11.12-alpine
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: flagsmith
container_name: 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"