@@ -62,16 +62,49 @@ services:
6262
6363 jhipster-registry :
6464 image : jhipster/jhipster-registry:v6.7.1
65+ volumes :
66+ - ./central-server-config:/central-config
67+ # By default the JHipster Registry runs with the "dev" and "native"
68+ # Spring profiles.
69+ # "native" profile means the filesystem is used to store data, see
70+ # http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html
6571 environment :
6672 - _JAVA_OPTIONS=-Xmx512m -Xms256m
6773 - JHIPSTER_SLEEP=20
6874 - SPRING_PROFILES_ACTIVE=dev,oauth2
6975 - SPRING_SECURITY_USER_PASSWORD=admin
7076 - JHIPSTER_REGISTRY_PASSWORD=admin
71- - ENCRYPT_KEY=${ENCRYPT_KEY}
72- - SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_TYPE=git
73- - SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_URI=https://github.com/mraible/reactive-java-ms-config/
74- - SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_SEARCH_PATHS=config
75- - SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_LABEL=main
77+ - SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_TYPE=native
78+ - SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_SEARCH_LOCATIONS=file:./central-config
79+ # - SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_TYPE=git
80+ # - SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_URI=https://github.com/jhipster/jhipster-registry/
81+ # - SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_SEARCH_PATHS=central-config
82+ # For Keycloak to work, you need to add '127.0.0.1 keycloak' to your hosts file
83+ - SPRING_SECURITY_OAUTH2_CLIENT_PROVIDER_OIDC_ISSUER_URI=http://keycloak:9080/auth/realms/jhipster
84+ - SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_OIDC_CLIENT_ID=jhipster-registry
85+ - SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_OIDC_CLIENT_SECRET=jhipster-registry
7686 ports :
7787 - 8761:8761
88+ keycloak :
89+ image : jboss/keycloak:12.0.4
90+ command :
91+ [
92+ " -b" ,
93+ " 0.0.0.0" ,
94+ " -Dkeycloak.migration.action=import" ,
95+ " -Dkeycloak.migration.provider=dir" ,
96+ " -Dkeycloak.migration.dir=/opt/jboss/keycloak/realm-config" ,
97+ " -Dkeycloak.migration.strategy=OVERWRITE_EXISTING" ,
98+ " -Djboss.socket.binding.port-offset=1000" ,
99+ " -Dkeycloak.profile.feature.upload_scripts=enabled" ,
100+ ]
101+ volumes :
102+ - ./realm-config:/opt/jboss/keycloak/realm-config
103+ environment :
104+ - KEYCLOAK_USER=admin
105+ - KEYCLOAK_PASSWORD=admin
106+ - DB_VENDOR=h2
107+ ports :
108+ - 9080:9080
109+ - 9443:9443
110+ - 10990:10990
0 commit comments