flagsmith Docker & Self-Hosted Deployment

GitHub

Flagsmith is an open source feature flagging and remote config service. Self-host or use our hosted version at

RAW Compose
1. Pull Image (DOCKERHUB) docker pull library/postgres
2. Docker Run (1-Click Launch) docker run -d --name flagsmith -p 8000:8000 --restart always postgres:15.5-alpine
3. Podman Run podman run -d --name flagsmith -p 8000:8000 --restart always postgres:15.5-alpine
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/library/postgres:15.5-alpine
5. ORAS Pull (OCI Artifact) oras pull postgres:15.5-alpine
6. Compose Deployment docker compose up -d
docker/api/docker-compose.datadog.yml
Download .yml
# An example docker-compose file for integrating the Flagsmith API with DataDog via statsd.
# Further documentation can be found here: https://docs.flagsmith.com/deployment/locally-api#statsd-integration

version: '3'
services:
  postgres:
    image: postgres:15.5-alpine
    environment:
      POSTGRES_PASSWORD: password
      POSTGRES_DB: flagsmith
    container_name: flagsmith_postgres
  api:
    build:
      dockerfile: Dockerfile
      context: ../../api
    environment:
      DATABASE_URL: postgres://postgres:password@postgres:5432/flagsmith
      DJANGO_SETTINGS_MODULE: app.settings.local
      STATSD_HOST: datadog
    ports:
      - 8000:8000
    depends_on:
      - postgres
    links:
      - postgres
      - datadog
  datadog:
    image: gcr.io/datadoghq/agent:7
    environment:
      - DD_API_KEY=<API KEY>
      - DD_SITE=datadoghq.eu
      - DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /proc/:/host/proc/:ro
      - /sys/fs/cgroup:/host/sys/fs/cgroup:ro
      - /var/lib/docker/containers:/var/lib/docker/containers:ro