healthcheck ok
This commit is contained in:
parent
a35a1f9583
commit
6a415bc620
@ -2,25 +2,35 @@ version: '3'
|
||||
|
||||
services:
|
||||
keycloak:
|
||||
image: quay.io/keycloak/keycloak:16.0.0
|
||||
container_name: keycloak
|
||||
restart: always
|
||||
#command: -Dkeycloak.profile.feature.upload_scripts=enabled
|
||||
ports:
|
||||
- 8051:8080
|
||||
depends_on:
|
||||
- keycloak_db
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
image: quay.io/keycloak/keycloak:16.0.0
|
||||
container_name: keycloak
|
||||
restart: always
|
||||
ports:
|
||||
- 8051:8080
|
||||
depends_on:
|
||||
- keycloak_db
|
||||
env_file:
|
||||
- .env
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/realms/master"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
|
||||
keycloak_db:
|
||||
image: postgres:13
|
||||
container_name: keycloak-db
|
||||
restart: always
|
||||
volumes:
|
||||
- /data/keycloak/postgres_data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- 5435:5432
|
||||
env_file:
|
||||
- .env
|
||||
image: postgres:13
|
||||
container_name: keycloak-db
|
||||
restart: always
|
||||
volumes:
|
||||
- /data/keycloak/postgres_data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- 5435:5432
|
||||
env_file:
|
||||
- .env
|
||||
healthcheck:
|
||||
test: ["CMD", "pg_isready", "-U", "postgres"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user