Cambiado el uso de la imagen de keycloak de bitnami por la de quay.io
This commit is contained in:
parent
33e99c167d
commit
8de3aa6ab4
@ -40,7 +40,6 @@
|
|||||||
"bruteForceProtected": false,
|
"bruteForceProtected": false,
|
||||||
"permanentLockout": false,
|
"permanentLockout": false,
|
||||||
"maxTemporaryLockouts": 0,
|
"maxTemporaryLockouts": 0,
|
||||||
"bruteForceStrategy": "MULTIPLE",
|
|
||||||
"maxFailureWaitSeconds": 900,
|
"maxFailureWaitSeconds": 900,
|
||||||
"minimumQuickLoginWaitSeconds": 60,
|
"minimumQuickLoginWaitSeconds": 60,
|
||||||
"waitIncrementSeconds": 60,
|
"waitIncrementSeconds": 60,
|
||||||
|
|||||||
@ -40,30 +40,35 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
auth:
|
auth:
|
||||||
image: bitnami/keycloak:26.2.5
|
image: quay.io/keycloak/keycloak:26.2.5
|
||||||
container_name: auth
|
container_name: auth
|
||||||
env_file:
|
env_file:
|
||||||
- ../.env
|
- ../.env
|
||||||
|
command: ["start", "--import-realm"]
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/keycloak:/opt/bitnami/keycloak/data/import
|
- ../config/keycloak:/opt/keycloak/data/import
|
||||||
environment:
|
environment:
|
||||||
KEYCLOAK_HOSTNAME: ${KEYCLOAK_HOSTNAME:-http://localhost:9083}
|
KC_HEALTH_ENABLED: ${KC_HEALTH_ENABLED:-true}
|
||||||
KC_HTTP_PORT: 8080
|
KC_METRICS_ENABLED: ${KC_METRICS_ENABLED:-true}
|
||||||
KC_CACHE: local
|
KC_DB_URL_HOST: auth-db
|
||||||
KEYCLOAK_ADMIN_USER: ${KC_BOOTSTRAP_ADMIN_USERNAME:-admin}
|
KC_DB_DATABASE: ${POSTGRES_DB:-keycloak}
|
||||||
KEYCLOAK_ADMIN_PASSWORD: ${KC_BOOTSTRAP_ADMIN_PASSWORD:-admin}
|
KC_DB_USERNAME: ${POSTGRES_USER:-keycloak}
|
||||||
KEYCLOAK_DATABASE_HOST: auth-db
|
KC_DB_PASSWORD: ${POSTGRES_PASS:-p@ssw0rd}
|
||||||
KEYCLOAK_DATABASE_PORT: 5432
|
KC_HOSTNAME: ${KC_HOSTNAME:-localhost}
|
||||||
KEYCLOAK_DATABASE_NAME: ${POSTGRES_DB:-keycloak}
|
KC_HTTP_ENABLED: ${KC_HTTP_ENABLED:-true}
|
||||||
KEYCLOAK_DATABASE_USER: ${POSTGRES_USER:-keycloak}
|
KC_HOSTNAME_STRICT_HTTPS: ${KC_HOSTNAME_STRICT_HTTPS:-false}
|
||||||
KEYCLOAK_DATABASE_PASSWORD: ${POSTGRES_PASS:-p@ssw0rd}
|
KC_DB: ${KC_DB:-postgres}
|
||||||
KEYCLOAK_ENABLE_HEALTH_ENDPOINTS: true
|
TZ: ${TZ:-America/Argentina/Buenos_Aires}
|
||||||
KEYCLOAK_EXTRA_ARGS: --import-realm
|
KC_LOG_LEVEL: ${KC_LOG_LEVEL:-DEBUG}
|
||||||
|
KC_PROXY_HEADERS: ${KC_PROXY_HEADERS:-xforwarded}
|
||||||
|
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN:-admin}
|
||||||
|
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD:-adminpassword}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD-SHELL", "exec 3<>/dev/tcp/localhost/9000 && echo -e 'GET /health/ready HTTP/1.0\\r\\nHost: localhost\\r\\n\\r\\n' >&3 && grep -q '200 OK' <&3"]
|
||||||
interval: 15s
|
interval: 15s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 10
|
||||||
|
start_period: 40s
|
||||||
ports:
|
ports:
|
||||||
- "9083:8080"
|
- "9083:8080"
|
||||||
networks:
|
networks:
|
||||||
@ -73,6 +78,7 @@ services:
|
|||||||
auth-db:
|
auth-db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
|
|
||||||
auth-db:
|
auth-db:
|
||||||
image: postgres:17.5-alpine
|
image: postgres:17.5-alpine
|
||||||
container_name: auth-db
|
container_name: auth-db
|
||||||
|
|||||||
@ -68,7 +68,7 @@ func (c *IpsClient) GetIpsBundle(url string) (map[string]interface{}, error) {
|
|||||||
|
|
||||||
func (c *IpsClient) GetIpsICVP(idBundle string, immunizationId *string) (string, error) {
|
func (c *IpsClient) GetIpsICVP(idBundle string, immunizationId *string) (string, error) {
|
||||||
// TODO: To be implemented by the participant
|
// TODO: To be implemented by the participant
|
||||||
return nil, &errors.HttpError{
|
return "", &errors.HttpError{
|
||||||
StatusCode: 500,
|
StatusCode: 500,
|
||||||
Body: []map[string]interface{}{{"error": "Not implemented error", "message": "this method is not implemented yet"}},
|
Body: []map[string]interface{}{{"error": "Not implemented error", "message": "this method is not implemented yet"}},
|
||||||
Err: fmt.Errorf("failed to get document reference"),
|
Err: fmt.Errorf("failed to get document reference"),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user