diff --git a/blueprints/unleash/docker-compose.yml b/blueprints/unleash/docker-compose.yml new file mode 100644 index 000000000..dc34db8d0 --- /dev/null +++ b/blueprints/unleash/docker-compose.yml @@ -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}" + 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: diff --git a/blueprints/unleash/template.toml b/blueprints/unleash/template.toml new file mode 100644 index 000000000..f57ef9757 --- /dev/null +++ b/blueprints/unleash/template.toml @@ -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}" +] + +[[config.domains]] +serviceName = "unleash" +port = 4242 +host = "${main_domain}" \ No newline at end of file diff --git a/blueprints/unleash/unleash.png b/blueprints/unleash/unleash.png new file mode 100644 index 000000000..9b6b5b8dc Binary files /dev/null and b/blueprints/unleash/unleash.png differ diff --git a/meta.json b/meta.json index 12173567a..9ad906f51 100644 --- a/meta.json +++ b/meta.json @@ -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",