1 # Copyright (C) 2023 Nordix Foundation. All rights reserved.
2 # ========================================================================
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 # ============LICENSE_END=================================================
20 container_name: postgres_container
21 image: postgres:latest
24 POSTGRES_USER: keycloak
25 POSTGRES_PASSWORD: password
27 - postgres_data:/var/lib/postgresql/data
34 restart: unless-stopped
37 container_name: pgadmin_container
40 PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org}
41 PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
42 PGADMIN_CONFIG_SERVER_MODE: 'False'
44 - pgadmin:/var/lib/pgadmin
47 - "${PGADMIN_PORT:-5050}:80"
50 restart: unless-stopped
53 container_name: keycloak
54 image: quay.io/keycloak/keycloak:20.0.3
57 KC_DB_URL_HOST: postgres_container
58 KC_DB_URL_DATABASE: keycloak
59 KC_DB_PASSWORD: password
60 KC_DB_USERNAME: keycloak
63 KEYCLOAK_ADMIN_PASSWORD: secret
69 test: curl --fail --silent http://localhost:8180/health/ready 2>&1 || exit 1
73 entrypoint: ["/opt/keycloak/bin/kc.sh", "start-dev"]
78 container_name: sme-capifcore
84 entrypoint: ["/capifcore"]