feat(docker-compose): add extra options for developer portal
MODIFY
docker-compose/src/docker/.env
docker-compose/src/docker/.env
@@ -6,6 +6,7 @@ APIMAN_GATEWAY_PORT=8080
# If you want to set another public endpoint than the default defined in this quickstart.
APIMAN_GATEWAY_PUBLIC_ENDPOINT=http://gateway.${APIMAN_HOSTNAME}:${APIMAN_GATEWAY_PORT}
APIMAN_MANAGER_UI_ENDPOINT=http://apiman.${APIMAN_HOSTNAME}:${APIMAN_GATEWAY_PORT}/apimanui/api-manager/
+APIMAN_MANAGER_API_ENDPOINT=http://apiman.${APIMAN_HOSTNAME}:${APIMAN_GATEWAY_PORT}/apiman
KEYCLOAK_PROTOCOL=http
KEYCLOAK_HOST=keycloak

MODIFY
docker-compose/src/docker/README.adoc
docker-compose/src/docker/README.adoc
@@ -30,6 +30,7 @@ These are also copied into `.env`, where they can be injected into Apiman, etc.
* Start docker compose: `docker-compose up` or `docker compose up`
* Location of services:
** Apiman Manager UI: `http://apiman.local.gd:8080/apimanui`
+** Apiman Developer Portal: `http://apiman.local.gd:8080/portal`
** Apiman Manager API: `http://apiman.local.gd:8080/apiman`
** Apiman Gateway: `http://gateway.local.gd:8080`
** Keycloak Admin: `http://auth.local.gd:8080/admin`

MODIFY
docker-compose/src/docker/data/apiman.properties
docker-compose/src/docker/data/apiman.properties
@@ -46,6 +46,9 @@ apiman-manager-ui.allowed-cors-origins=*
# Set this to whatever your valid public endpoint would be for accessing the main Apiman UI.
apiman-manager.ui.endpoint=${env:APIMAN_MANAGER_UI_ENDPOINT}
+# Where is the Apiman API backend?
+apiman-manager-ui.api.endpoint=${env:APIMAN_MANAGER_API_ENDPOINT}
+
# Security context settings.
apiman-manager.security-context.type=keycloak

MODIFY
docker-compose/src/docker/docker-compose.yml
docker-compose/src/docker/docker-compose.yml
@@ -29,6 +29,7 @@ services:
# General Apiman config
- "ALLOW_ANY_HOST=${SELF_SIGNED}"
- "APIMAN_MANAGER_UI_ENDPOINT=${APIMAN_MANAGER_UI_ENDPOINT}"
+ - "APIMAN_MANAGER_API_ENDPOINT=${APIMAN_MANAGER_API_ENDPOINT}"
volumes:
- type: bind
source: "$PWD/data/apiman.properties"
@@ -46,7 +47,7 @@ services:
# - traefik.http.routers.apimanui-router.tls=true
- traefik.http.routers.apimanui-router.entrypoints=http
- traefik.http.routers.apimanui-router.rule=Host(`apiman.${APIMAN_HOSTNAME}`)
- - traefik.http.routers.apimanui-router.rule=PathPrefix(`/apiman`, `/apimanui`)
+ - traefik.http.routers.apimanui-router.rule=PathPrefix(`/apiman`, `/apimanui`, `/portal`)
- traefik.http.routers.apimanui-router.service=apimanui-service
- traefik.http.services.apimanui-service.loadbalancer.server.port=8080

MODIFY
docker-compose/src/main/assembly/assembly.xml
docker-compose/src/main/assembly/assembly.xml
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd">
<id>zip</id>
- <includeBaseDirectory>false</includeBaseDirectory>
+ <includeBaseDirectory>true</includeBaseDirectory>
<formats>
<format>zip</format>
</formats>

feat(docker-compose): add extra options for developer portal