Merge pull request #1990 from Dinip/add-unleash-as-a-service
Add Unleash as a service
This commit is contained in:
commit
5dd2b4c439
1
public/svgs/unleash.svg
Normal file
1
public/svgs/unleash.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg id="bg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 251.43 251.03"><defs><style>.cls-1{fill:#1a4049;}.cls-2{fill:#fff;}.cls-3{fill:#817afe;}</style></defs><circle class="cls-1" cx="125.71" cy="125.31" r="80"/><polygon class="cls-2" points="137.14 91.03 137.14 113.88 137.14 136.74 160 136.74 160 113.88 160 91.03 137.14 91.03"/><polygon class="cls-2" points="114.29 113.88 114.29 91.03 91.43 91.03 91.43 113.88 91.43 136.74 91.43 159.6 114.29 159.6 137.14 159.6 137.14 136.74 114.29 136.74 114.29 113.88"/><rect class="cls-3" x="137.14" y="136.74" width="22.86" height="22.86"/></svg>
|
After Width: | Height: | Size: 593 B |
49
templates/compose/unleash-with-postgresql.yaml
Normal file
49
templates/compose/unleash-with-postgresql.yaml
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
# documentation: https://docs.getunleash.io
|
||||||
|
# slogan: Unleash: Open source feature flag management for enterprises
|
||||||
|
# tags: unleash,feature flags,feature toggles,ab testing,open source
|
||||||
|
# logo: svgs/unleash.svg
|
||||||
|
# port: 4242
|
||||||
|
|
||||||
|
services:
|
||||||
|
unleash:
|
||||||
|
image: 'unleashorg/unleash-server:latest'
|
||||||
|
environment:
|
||||||
|
- SERVICE_FQDN_UNLEASH_4242
|
||||||
|
- UNLEASH_URL=${SERVICE_FQDN_UNLEASH}
|
||||||
|
- 'DATABASE_URL=postgres://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@postgres/db'
|
||||||
|
- DATABASE_SSL=false
|
||||||
|
- LOG_LEVEL=warn
|
||||||
|
- INIT_FRONTEND_API_TOKENS=default:default:development.unleash-insecure-frontend-api-token
|
||||||
|
- INIT_CLIENT_API_TOKENS=default:development.unleash-insecure-api-token
|
||||||
|
depends_on:
|
||||||
|
postgres:
|
||||||
|
condition: service_healthy
|
||||||
|
command:
|
||||||
|
- node
|
||||||
|
- index.js
|
||||||
|
healthcheck:
|
||||||
|
test: 'wget --no-verbose --tries=1 --spider http://localhost:4242/health || exit 1'
|
||||||
|
interval: 1s
|
||||||
|
timeout: 1m
|
||||||
|
retries: 5
|
||||||
|
start_period: 15s
|
||||||
|
postgres:
|
||||||
|
image: postgres:15
|
||||||
|
volumes:
|
||||||
|
- postgresql-data:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=$SERVICE_USER_POSTGRES
|
||||||
|
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
||||||
|
- POSTGRES_DB=db
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
- CMD
|
||||||
|
- pg_isready
|
||||||
|
- '--username=$SERVICE_USER_POSTGRES'
|
||||||
|
- '--host=127.0.0.1'
|
||||||
|
- '--port=5432'
|
||||||
|
- '--dbname=db'
|
||||||
|
interval: 2s
|
||||||
|
timeout: 1m
|
||||||
|
retries: 5
|
||||||
|
start_period: 10s
|
26
templates/compose/unleash-without-database.yaml
Normal file
26
templates/compose/unleash-without-database.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# documentation: https://docs.getunleash.io
|
||||||
|
# slogan: Unleash: Open source feature flag management for enterprises
|
||||||
|
# tags: unleash,feature flags,feature toggles,ab testing,open source
|
||||||
|
# logo: svgs/unleash.svg
|
||||||
|
# port: 4242
|
||||||
|
|
||||||
|
services:
|
||||||
|
unleash:
|
||||||
|
image: 'unleashorg/unleash-server:latest'
|
||||||
|
environment:
|
||||||
|
- SERVICE_FQDN_UNLEASH_4242
|
||||||
|
- UNLEASH_URL=${SERVICE_FQDN_UNLEASH}
|
||||||
|
- DATABASE_URL=${DATABASE_URL}
|
||||||
|
- DATABASE_SSL=${DATABASE_SSL:-false}
|
||||||
|
- LOG_LEVEL=warn
|
||||||
|
- INIT_FRONTEND_API_TOKENS=default:default:development.unleash-insecure-frontend-api-token
|
||||||
|
- INIT_CLIENT_API_TOKENS=default:development.unleash-insecure-api-token
|
||||||
|
command:
|
||||||
|
- node
|
||||||
|
- index.js
|
||||||
|
healthcheck:
|
||||||
|
test: 'wget --no-verbose --tries=1 --spider http://localhost:4242/health || exit 1'
|
||||||
|
interval: 1s
|
||||||
|
timeout: 1m
|
||||||
|
retries: 5
|
||||||
|
start_period: 15s
|
Loading…
Reference in New Issue
Block a user