File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,15 @@ services:
12
12
environment :
13
13
- PUID=1000
14
14
- PGID=1000
15
- - TZ=Europe/Berlin
16
- - KEYCLOAK_ADMIN=${KEYCLOAK_ADMIN:-admin }
17
- - KEYCLOAK_ADMIN_PASSWORD=${KEYCLOAK_ADMIN_PASSWORD:-password }
15
+ - TZ=${TIMEZONE:-UTC}
16
+ - KEYCLOAK_ADMIN=${SERVICE_USER_ADMIN }
17
+ - KEYCLOAK_ADMIN_PASSWORD=${SERVICE_PASSWORD_ADMIN }
18
18
- KC_DB=postgres
19
19
- KC_DB_USERNAME=${SERVICE_USER_DATABASE}
20
20
- KC_DB_PASSWORD=${SERVICE_PASSWORD_64_DATABASE}
21
21
- KC_DB_URL_PORT=5432
22
22
- KC_DB_URL=jdbc:postgresql://postgres/${POSTGRESQL_DATABASE:-keycloak}
23
23
- KC_HOSTNAME=${SERVICE_FQDN_KEYCLOAK_8080}
24
- - KC_ENABLE_HTTPS=false
25
24
- KC_HTTP_ENABLED=true
26
25
- KC_HEALTH_ENABLED=true
27
26
- KC_DB_POOL_INITIAL_SIZE=${KEYCLOAK_DB_POOL_INITIAL_SIZE}
@@ -37,7 +36,11 @@ services:
37
36
postgres :
38
37
condition : service_healthy
39
38
healthcheck :
40
- test : ["CMD-SHELL", "exec 3<>/dev/tcp/127.0.0.1/9000;echo -e 'GET /health/ready HTTP/1.1\r\nhost: http://localhost\r\nConnection: close\r\n\r\n' >&3;if [ $? -eq 0 ]; then echo 'Healthcheck Successful';exit 0;else echo 'Healthcheck Failed';exit 1;fi;"]
39
+ test :
40
+ [
41
+ " CMD-SHELL" ,
42
+ " exec 3<>/dev/tcp/127.0.0.1/9000;echo -e 'GET /health/ready HTTP/1.1\r\n host: http://localhost\r\n Connection: close\r\n\r\n ' >&3;if [ $? -eq 0 ]; then echo 'Healthcheck Successful';exit 0;else echo 'Healthcheck Failed';exit 1;fi;" ,
43
+ ]
41
44
interval : 5s
42
45
timeout : 20s
43
46
retries : 10
Original file line number Diff line number Diff line change @@ -12,11 +12,10 @@ services:
12
12
environment :
13
13
- PUID=1000
14
14
- PGID=1000
15
- - TZ=Europe/Berlin
16
- - KEYCLOAK_ADMIN=${KEYCLOAK_ADMIN:-admin }
17
- - KEYCLOAK_ADMIN_PASSWORD=${KEYCLOAK_ADMIN_PASSWORD:-password }
15
+ - TZ=${TIMEZONE:-UTC}
16
+ - KEYCLOAK_ADMIN=${SERVICE_USER_ADMIN }
17
+ - KEYCLOAK_ADMIN_PASSWORD=${SERVICE_PASSWORD_ADMIN }
18
18
- KC_HOSTNAME=${SERVICE_FQDN_KEYCLOAK_8080}
19
- - KC_ENABLE_HTTPS=false
20
19
- KC_HTTP_ENABLED=true
21
20
- KC_HEALTH_ENABLED=true
22
21
- KC_DB_POOL_INITIAL_SIZE=${KEYCLOAK_DB_POOL_INITIAL_SIZE}
@@ -29,7 +28,11 @@ services:
29
28
volumes :
30
29
- keycloak-data:/opt/keycloak/data
31
30
healthcheck :
32
- test : ["CMD-SHELL", "exec 3<>/dev/tcp/127.0.0.1/9000;echo -e 'GET /health/ready HTTP/1.1\r\nhost: http://localhost\r\nConnection: close\r\n\r\n' >&3;if [ $? -eq 0 ]; then echo 'Healthcheck Successful';exit 0;else echo 'Healthcheck Failed';exit 1;fi;"]
31
+ test :
32
+ [
33
+ " CMD-SHELL" ,
34
+ " exec 3<>/dev/tcp/127.0.0.1/9000;echo -e 'GET /health/ready HTTP/1.1\r\n host: http://localhost\r\n Connection: close\r\n\r\n ' >&3;if [ $? -eq 0 ]; then echo 'Healthcheck Successful';exit 0;else echo 'Healthcheck Failed';exit 1;fi;" ,
35
+ ]
33
36
interval : 5s
34
37
timeout : 20s
35
38
retries : 10
You can’t perform that action at this time.
0 commit comments