Skip to content

Commit b7fd9f9

Browse files
authored
Fix docker compose distribution and add ui deployment (#4363)
1 parent c52eb30 commit b7fd9f9

File tree

2 files changed

+34
-13
lines changed

2 files changed

+34
-13
lines changed

distro/docker-compose/README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ This setup contains a fully configured Apicurio Registry package already integra
3636

3737
Here is the port mapping:
3838
- 8080 for Keycloak
39-
- 8081 for the Registry
39+
- 8081 for the Registry API
40+
- 8888 for the Registry UI
41+
4042

4143
#### Starting the environment
4244

@@ -57,15 +59,15 @@ docker system prune --volumes
5759
The Keycloak instance is already configured, you don't have to create the realms manually.
5860

5961
At the first start there are no default users added to Keycloak. Please navigate to:
60-
`http://YOUR_IP:8090`
62+
`http://YOUR_IP:8080`
6163

62-
The default credentials for Keycloak are: `admin` and the password can be found in the previously generated `.env` file, under `KEYCLOAK_PASSWORD`.
64+
The default credentials for Keycloak are: `admin` and the password is also `admin`.
6365

6466
Select Registry realm and add a user to it. You'll need to also assign the appropriated role.
6567

66-
6768
#### Login to Apicurio and Keycloak
6869

69-
Apicurio URL: `http://YOUR_IP:8080`
70-
Keycloak URL: `http://YOUR_IP:8090`
70+
Apicurio Registry UI URL: `http://YOUR_IP:8888`
71+
Apicurio Registry API URL: `http://YOUR_IP:8081`
72+
Keycloak URL: `http://YOUR_IP:8080`
7173

distro/docker-compose/src/main/resources/docker-compose.apicurio.yml

+26-7
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ volumes:
77
services:
88
keycloak-server:
99
container_name: keycloak-apicurio
10-
image: quay.io/keycloak/keycloak:19.0.2
10+
image: quay.io/keycloak/keycloak:23.0.7
1111
environment:
1212
KEYCLOAK_ADMIN: admin
1313
KEYCLOAK_ADMIN_PASSWORD: admin
14-
KC_HOSTNAME_URL: http://localhost:8080
14+
KC_HOSTNAME: "localhost"
15+
KC_HOSTNAME_PORT: "8080"
16+
KC_HOSTNAME_STRICT_BACKCHANNEL: "false"
1517
command:
1618
- start-dev
1719
- --import-realm
@@ -27,22 +29,39 @@ services:
2729
POSTGRES_USER: apicurio-registry
2830
POSTGRES_PASSWORD: password
2931

30-
app:
31-
image: apicurio/apicurio-registry-sql:latest-snapshot
32+
backend:
33+
image: quay.io/apicurio/apicurio-registry@sha256:3cf8b1a8b67ef1efff872556f642751f432eec8d1b704d45adececeff86a3222
3234
environment:
3335
REGISTRY_DATASOURCE_URL: 'jdbc:postgresql://database-apicurio:5432/apicurio-registry'
3436
REGISTRY_DATASOURCE_USERNAME: apicurio-registry
3537
REGISTRY_DATASOURCE_PASSWORD: password
38+
REGISTRY_STORAGE_KIND: "sql"
39+
REGISTRY_STORAGE_DB_KIND: "postgresql"
3640
AUTH_ENABLED: "true"
3741
KEYCLOAK_REALM: registry
3842
QUARKUS_HTTP_PORT: 8081
39-
LOG_LEVEL: "DEBUG"
4043
KEYCLOAK_URL: "http://localhost:8080"
44+
LOG_LEVEL: "DEBUG"
45+
REGISTRY_UI_CONFIG_AUTH_KEYCLOAK_URL: "http://localhost:8080"
46+
QUARKUS_OIDC_AUTH_SERVER_URL: "http://keycloak-server:8080/realms/registry"
47+
TOKEN_ENDPOINT: "http://keycloak-server:8080/realms/registry/protocol/openid-connect/token"
4148
KEYCLOAK_API_CLIENT_ID: registry-api
42-
KEYCLOAK_UI_CLIENT_ID: apicurio-registry
43-
REGISTRY_AUTH_URL_CONFIGURED: "http://host.docker.internal:8080/realms/registry"
49+
REGISTRY_UI_AUTH_OIDC_CLIENTID: apicurio-registry
50+
QUARKUS_OIDC_TLS_VERIFICATION: "none"
51+
CORS_ALLOWED_ORIGINS: '*'
52+
QUARKUS_PROFILE: "prod"
4453
ports:
4554
- 8081:8081
4655
depends_on:
4756
- postgres
4857
- keycloak-server
58+
59+
ui:
60+
image: quay.io/apicurio/apicurio-registry-ui@sha256:ec60369e36cafd68e7af6f87df397c54975bbb71530744810822cf4aab2159d9
61+
environment:
62+
REGISTRY_API_URL: "http://localhost:8081/apis/registry/v3"
63+
ports:
64+
- 8888:8080
65+
depends_on:
66+
- backend
67+
- keycloak-server

0 commit comments

Comments
 (0)