You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flagsmith/docker-compose.yml

51 lines
1.7 KiB

# See https://docs.flagsmith.com/docker/ for more information on running Flagsmith in Docker
version: "3"
5 years ago
services:
api:
image: flagsmith/flagsmith-api:latest
5 years ago
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
5 years ago
ports:
- "8000:8000"
5 years ago
depends_on:
- db
links:
- db:db
# - influxdb:influxdb
container_name: flagsmith_api
5 years ago
frontend:
image: flagsmith/flagsmith-frontend:latest
5 years ago
environment:
# You might need to change the 2 host names below depending on your docker dns setup
API_URL: http://localhost:8000/api/v1/
ASSET_URL: http://localhost:8080/
DISABLE_INFLUXDB_FEATURES: 1 # Switch to 0 to enable InfluxDB
FLAGSMITH: 4vfqhypYjcPoGGu8ByrBaj # This is the production Flagsmith API key
5 years ago
ports:
- "8080:8080"
links:
- api:api
container_name: flagsmith_frontend
db:
4 years ago
image: postgres:11.12-alpine
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: flagsmith
container_name: flagsmith_postgres
4 years ago
# 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"