Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions blueprints/unleash/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# The default users credentials are:
# Login: admin
# Password: unleash4all
# It is highly recommended to change the password after first login.
# More info: https://github.com/Unleash/unleash?tab=readme-ov-file#unleash-open-source
version: "3.8"

services:
unleash:
image: unleashorg/unleash-server:7.4.0
restart: unless-stopped
environment:
DATABASE_URL: "postgres://${DB_USER}:${DB_PASSWORD}@db/${DB_NAME}"
DATABASE_SSL: "false"
LOG_LEVEL: "warn"
depends_on:
db:
condition: service_healthy
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:4242/health || exit 1
interval: 1s
timeout: 1m
retries: 5
start_period: 15s
db:
image: postgres:15
restart: unless-stopped
environment:
POSTGRES_DB: "${DB_NAME}"
POSTGRES_USER: "${DB_USER}"
POSTGRES_PASSWORD: "${DB_PASSWORD}"
Comment on lines +29 to +31
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The environment variable naming deviates from the established convention in this repository. Most templates (e.g., reactive-resume, docmost, linkwarden, nocodb) use POSTGRES_DB, POSTGRES_USER, and POSTGRES_PASSWORD directly in both docker-compose.yml and template.toml. This template uses intermediate DB_NAME, DB_USER, and DB_PASSWORD variables which adds unnecessary indirection. While this may work functionally, it breaks consistency with the rest of the codebase. Consider changing these to use POSTGRES_* variables directly to follow the established pattern.

Copilot uses AI. Check for mistakes.
volumes:
- db_data:/var/lib/postgresql/data
healthcheck:
test:
[
"CMD",
"pg_isready",
"--username=${DB_USER}",
"--host=127.0.0.1",
"--port=5432",
]
interval: 2s
timeout: 1m
retries: 5
start_period: 10s

volumes:
db_data:
17 changes: 17 additions & 0 deletions blueprints/unleash/template.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[variables]
main_domain = "${domain}"
db_name = "unleash"
db_user = "unleash"
db_password = "${password:32}"

[config]
env = [
"DB_NAME=${db_name}",
"DB_USER=${db_user}",
"DB_PASSWORD=${db_password}"
Comment on lines +9 to +11
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The environment variable naming should match the docker-compose.yml convention used throughout the repository. Most templates use POSTGRES_PASSWORD, POSTGRES_USER, and POSTGRES_DB directly (see blueprints/reactive-resume/template.toml:14, blueprints/nocodb/template.toml:14-16, blueprints/linkwarden/template.toml:15). Change these to POSTGRES_PASSWORD, POSTGRES_USER, and POSTGRES_DB to maintain consistency with the codebase.

Copilot uses AI. Check for mistakes.
]

[[config.domains]]
serviceName = "unleash"
port = 4242
host = "${main_domain}"
Binary file added blueprints/unleash/unleash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -6123,6 +6123,24 @@
"networking"
]
},
{
"id": "unleash",
"name": "Unleash",
"version": "7.4.0",
"description": "Open-source feature management platform",
"logo": "unleash.png",
"links": {
"github": "https://github.com/unleash/unleash",
"website": "https://www.getunleash.io/",
"docs": "https://docs.getunleash.io/"
},
"tags": [
"feature-flag",
"feature-management",
"feature-toggle",
"remote-configuration"
]
},
{
"id": "upsnap",
"name": "Upsnap",
Expand Down
Loading