Skip to content

Commit

Permalink
Remove keycloak from compose
Browse files Browse the repository at this point in the history
  • Loading branch information
akheron committed Feb 18, 2025
1 parent 2d4cd3c commit 2e4cb42
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 62 deletions.
6 changes: 0 additions & 6 deletions compose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,6 @@ git push --delete origin playwright-test
To dump local database run `./db.sh dump` and restore it with `./db.sh restore`.
Optional dump name can be given to script, example `./db.sh dump my.dump`.

## Keycloak

Keycloak admin login from <http://localhost:8080/auth/admin/master/console/> with credentials `admin:admin`.

Evaka-customer realm (<http://localhost:9099/api/application/auth/evaka-customer/login?RelayState=%2F>) has pre-configured user with credentials `[email protected]:test123`.

## Troubleshooting

### Database
Expand Down
12 changes: 0 additions & 12 deletions compose/db/entry/create-keycloak.sh

This file was deleted.

1 change: 0 additions & 1 deletion compose/docker-compose.e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ services:
HEADLESS: ${HEADLESS:-true}
DEBUG: ${DEBUG:-}
depends_on:
- keycloak
- evaka-proxy
- api-gw
- evaka-srv
Expand Down
3 changes: 0 additions & 3 deletions compose/docker-compose.e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ services:
depends_on:
- api-gw
- evaka-srv
- keycloak
- s3-mock

api-gw:
Expand Down Expand Up @@ -61,8 +60,6 @@ services:
REDIS_PORT: ${EVAKA_REDIS_PORT}
REDIS_DISABLE_SECURITY: "true"
JWT_PRIVATE_KEY: /home/evaka/test-cert/jwt_private_key.pem
EVAKA_CUSTOMER_SAML_PUBLIC_CERT: /home/evaka/test-cert/keycloak-local.pem
EVAKA_CUSTOMER_SAML_PRIVATE_CERT: /home/evaka/test-cert/saml-private.pem
ENABLE_DEV_API: "true"
PRETTY_LOGS: "false"

Expand Down
40 changes: 0 additions & 40 deletions compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,46 +61,6 @@ services:
timeout: 5s
retries: 5

keycloak:
image: ghcr.io/espoon-voltti/evaka/keycloak:${TAG:-master}
build:
context: ../keycloak/
cache_from:
- ghcr.io/espoon-voltti/evaka/keycloak:cache-${CACHE_TAG:-master}
- ghcr.io/espoon-voltti/evaka/keycloak:cache-master
ports:
- "8080:8080"
environment:
# Initial admin user via environment, required when running with a container
# https://www.keycloak.org/server/configuration#_creating_the_initial_admin_user
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin

# Configuration options
# https://www.keycloak.org/server/all-config?f=config
# Database
KC_DB_URL: "jdbc:postgresql://db/keycloak?user=postgres&password=postgres"
# Hostname v2
KC_HOSTNAME: "http://${KEYCLOAK_HOST:-localhost}:8080/auth/"
KC_HOSTNAME_STRICT: "false"
# HTTP(S)
KC_HTTP_ENABLED: "true"
# Logging
#KC_LOG_LEVEL: "debug"
entrypoint: /configuration/entrypoint.sh
command: ["start", "--optimized", "--log-console-output=json"]
volumes:
- ../keycloak/compose-resources/configuration:/configuration
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/auth/health"]
interval: 2s
timeout: 5s
retries: 5
start_period: 5s
depends_on:
- smtp
- db

smtp:
image: mailhog/mailhog
ports:
Expand Down

0 comments on commit 2e4cb42

Please sign in to comment.