Skip to content

Commit

Permalink
added a keycloak service to docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarcoin committed Jun 18, 2024
1 parent a18c4e1 commit f6c665f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
16 changes: 15 additions & 1 deletion dev/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
version: "3.3"
services:
keycloak:
image: jboss/keycloak:latest
volumes:
- ./realm-config.json:/tmp/realm-config.json
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=keycloakpassword
- DB_VENDOR=h2
- KEYCLOAK_IMPORT=/tmp/realm-config.json
ports:
- 8080:8080
command:
- "-b"
- "0.0.0.0"
postgres:
image: postgres:15
ports:
Expand Down Expand Up @@ -52,7 +66,7 @@ services:
- /etc/localtime:/etc/localtime:ro
- wekan-files:/data:rw
volumes:
postgresql.conf:
postgresql.conf:
testData.sql:
createLogsDatabase.sql:
wekan-files:
Expand Down
15 changes: 15 additions & 0 deletions dev/realm-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"realm": "master",
"clients": [
{
"clientId": "signauxfaibles",
"rootUrl": "http://localhost:8081/auth",
"adminUrl": "http://localhost:8081/auth",
"surrogateAuthRequired": true,
"enabled": true,
"redirectUris": [
"http://localhost:3000/*"
]
}
]
}

0 comments on commit f6c665f

Please sign in to comment.