diff --git a/docker-compose.yml.j2 b/docker-compose.yml.j2 index 2197d0ff..83cb6d10 100644 --- a/docker-compose.yml.j2 +++ b/docker-compose.yml.j2 @@ -44,8 +44,33 @@ services: interval: 1s timeout: 1s retries: 30 -# networks: -# backend_network: + + unleash_proxy: + image: unleashorg/unleash-proxy:v1.1.1 + ports: + - "3000:3000" + environment: + # Proxy clients must use one of these keys to connect to the + # Proxy. To add more keys, separate them with a comma (`key1,key2`). + # UNLEASH_PROXY_CLIENT_KEYS: "randomkey" + UNLEASH_PROXY_SECRETS: "randomkey" + UNLEASH_APP_NAME: "local" + # This points the Proxy to the Unleash server API + UNLEASH_URL: "https://gitlab.com/api/v4/feature_flags/unleash/55951570" + UNLEASH_INSTANCE_ID: "glffct-ceHLxPcFMqyXsyGPXSkx" + # This is the API token that the Proxy uses to communicate with + # the Unleash server. + UNLEASH_API_TOKEN: "glpat-6f7PUWe9PwRoa53LUmsZ" + ENABLE_ALL_ENDPOINT: true + LOG_LEVEL: "debug" + # depends_on: + # - web + healthcheck: + test: wget --no-verbose --tries=1 --spider http://localhost:3000/proxy/health || exit 1 + interval: 1s + timeout: 1m + retries: 5 + volumes: db: name: rapportnavdb