You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#If we don't specify this condition, the web service will start before keycloak is ready to accept requests.
33
+
condition: service_healthy
34
+
restart: true
35
+
12
36
my-db:
13
37
image: postgres
14
38
ports:
@@ -29,9 +53,19 @@ services:
29
53
- --import-realm
30
54
ports:
31
55
- '8080:8080'
56
+
networks:
57
+
- star-net
32
58
environment:
33
59
- KEYCLOAK_ADMIN=admin
34
60
- KEYCLOAK_ADMIN_PASSWORD=admin
61
+
- KC_HEALTH_ENABLED=true
62
+
healthcheck:
63
+
#keycloak doesn't do curl -f internally so we have to use a shell command to check the health of the service. Found at https://gist.github.com/sarath-soman/5d9aec06953bbd0990c648605d4dba07
64
+
#Note that if we update to v25 we will need to update the port to 9000
Copy file name to clipboardExpand all lines: docs/contributions/developers/1_local_setup.md
-10
Original file line number
Diff line number
Diff line change
@@ -289,16 +289,6 @@ migration "2024_01_27_Create_Date" was executed successfully
289
289
migration "2024_01_29_pkeys_and_heads" was executed successfully
290
290
```
291
291
292
-
#### Configuring Keycloak
293
-
294
-
We need to manually configure the keycloak realm so that it can interface with the service properly.
295
-
296
-
1.[Download the Keycloak configuration](https://drive.google.com/file/d/1_S-MpnsxSr8oeA6MrNd3VSOGyKe7Qca_/view?usp=sharing)
297
-
1. Navigate to localhost:8080 , select Administration Console
298
-
1. Login with user=admin, password=admin
299
-
1. Select the master dropdown in the top-left, select "Create Realm"
300
-
1. Browse to select the configuration you downloaded
301
-
1. Click "Create"
302
292
303
293
**Verification Steps**
304
294
It's tricky to verify at the moment, but once you have the backend running you should be able to register with a username and password via your frontend at localhost:3000.
0 commit comments