{
  "id": "flagsmith",
  "name": "Flagsmith",
  "slogan": "A feature flag and remote config service with a dashboard, environments, segments and an SDK API. Runs the API and dashboard in one container with a bundled Postgres database. On first open, the sign-up page creates the first organisation and admin.",
  "category": "Developer Tools",
  "categorySlug": "developer-tools",
  "tags": [
    "postgres",
    "multi-service"
  ],
  "license": {
    "spdx": "BSD-3-Clause",
    "class": "permissive"
  },
  "memoryMiB": 768,
  "architectures": {
    "amd64": "published",
    "arm64": "published"
  },
  "trust": "listed",
  "verified": false,
  "status": "active",
  "installCommand": "levelrail-cli templates install flagsmith --name my-flagsmith",
  "deployFormats": [
    "cli",
    "api"
  ],
  "url": "https://levelrail.com/templates/flagsmith/",
  "docsUrl": "https://docs.flagsmith.com/",
  "sourceRepo": "https://github.com/Flagsmith/flagsmith",
  "markdownUrl": "https://levelrail.com/templates/flagsmith.md",
  "jsonUrl": "https://levelrail.com/templates/flagsmith.json",
  "indexable": true,
  "description": "A feature flag and remote config service with a dashboard, environments, segments and an SDK API. Runs the API and dashboard in one container with a bundled Postgres database. On first open, the sign-up page creates the first organisation and admin.",
  "pinnedTag": "16-alpine",
  "licenseUrl": "https://github.com/Flagsmith/flagsmith/blob/main/LICENSE",
  "licenseClassLabel": "Permissive license",
  "needsConfig": false,
  "gpu": false,
  "firstRun": [
    "Open the app and sign up. The first account becomes the organisation admin."
  ],
  "services": [
    {
      "name": "db",
      "image": "postgres",
      "tag": "16-alpine",
      "ports": [],
      "volumes": [
        "pgdata -> /var/lib/postgresql/data"
      ]
    },
    {
      "name": "flagsmith",
      "image": "flagsmith/flagsmith",
      "tag": "2.288.2",
      "ports": [
        8000
      ],
      "volumes": []
    }
  ],
  "env": [
    {
      "service": "db",
      "name": "POSTGRES_DB",
      "kind": "preset"
    },
    {
      "service": "db",
      "name": "POSTGRES_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "db",
      "name": "POSTGRES_USER",
      "kind": "preset"
    },
    {
      "service": "flagsmith",
      "name": "DATABASE_URL",
      "kind": "generated"
    },
    {
      "service": "flagsmith",
      "name": "DISABLE_INFLUXDB_FEATURES",
      "kind": "preset"
    },
    {
      "service": "flagsmith",
      "name": "DJANGO_ALLOWED_HOSTS",
      "kind": "preset"
    },
    {
      "service": "flagsmith",
      "name": "DJANGO_SECRET_KEY",
      "kind": "generated"
    },
    {
      "service": "flagsmith",
      "name": "ENABLE_ADMIN_ACCESS_USER_PASS",
      "kind": "preset"
    },
    {
      "service": "flagsmith",
      "name": "FLAGSMITH_DOMAIN",
      "kind": "preset"
    },
    {
      "service": "flagsmith",
      "name": "TZ",
      "kind": "preset"
    },
    {
      "service": "flagsmith",
      "name": "USE_X_FORWARDED_HOST",
      "kind": "preset"
    }
  ],
  "verifiedTag": null,
  "verifiedArches": [],
  "aliases": [],
  "findings": [],
  "compose": null,
  "deploy": {
    "cli": "levelrail-cli templates install flagsmith --name my-flagsmith",
    "api": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/flagsmith/install \\\n  -d '{\n    \"name\": \"my-flagsmith\"\n  }'",
    "stack": null,
    "terraform": null,
    "formats": [
      {
        "id": "cli",
        "label": "CLI",
        "lang": "bash",
        "code": "levelrail-cli templates install flagsmith --name my-flagsmith",
        "note": "Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain db=app.example.com."
      },
      {
        "id": "api",
        "label": "API",
        "lang": "bash",
        "code": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/flagsmith/install \\\n  -d '{\n    \"name\": \"my-flagsmith\"\n  }'",
        "note": "Create a token in the dashboard first. Name, env and domains are the request fields."
      }
    ]
  }
}
