Hi,
as per below .yml file. I am trying to start keycloak image using docker .yml file on local with PostgreSQL database but getting error.
.yml file:-
version: ‘3’
services:
keycloak:
image: Quay
environment:
DB_VENDOR: POSTGRES
DB_ADDR: host.docker.internal
DB_PORT: 5432
DB_DATABASE: Local
DB_USER: postgres
DB_SCHEMA: public
DB_PASSWORD: admin
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
ports:
- 8080:8080
Error:-
Attaching to keycloakpostgresdockerfile_keycloak_1
keycloak_1 | Keycloak - Open Source Identity and Access Management
keycloak_1 |
keycloak_1 | Find more information at: Documentation Index
keycloak_1 |
keycloak_1 | Usage:
keycloak_1 |
keycloak_1 | kc.sh [OPTIONS] [COMMAND]
keycloak_1 |
keycloak_1 | Use this command-line tool to manage your Keycloak cluster.
keycloak_1 | Make sure the command is available on your “PATH” or prefix it with “./” (e.g.:
keycloak_1 | “./kc.sh”) to execute from the current folder.
keycloak_1 |
keycloak_1 | Options:
keycloak_1 |
keycloak_1 | -cf, --config-file
keycloak_1 | Set the path to a configuration file. By default, configuration properties are
keycloak_1 | read from the “keycloak.conf” file in the “conf” directory.
keycloak_1 | -h, --help This help message.
keycloak_1 | -v, --verbose Print out error details when running this command.
keycloak_1 | -V, --version Show version information
keycloak_1 |
keycloak_1 | Commands:
keycloak_1 |
keycloak_1 | build Creates a new and optimized server image.
keycloak_1 | start Start the server.
keycloak_1 | start-dev Start the server in development mode.
keycloak_1 | export Export data from realms to a file or directory.
keycloak_1 | import Import data from a directory or a file.
keycloak_1 | show-config Print out the current configuration.
keycloak_1 | tools Utilities for use and interaction with the server.
keycloak_1 | completion Generate bash/zsh completion script for kc.sh.
keycloak_1 |
keycloak_1 | Examples:
keycloak_1 |
keycloak_1 | Start the server in development mode for local development or testing:
keycloak_1 |
keycloak_1 | $ kc.sh start-dev
keycloak_1 |
keycloak_1 | Building an optimized server runtime:
keycloak_1 |
keycloak_1 | $ kc.sh build
keycloak_1 |
keycloak_1 | Start the server in production mode:
keycloak_1 |
keycloak_1 | $ kc.sh start
keycloak_1 |
keycloak_1 | Enable auto-completion to bash/zsh:
keycloak_1 |
keycloak_1 | $ source <(kc.sh tools completion)
keycloak_1 |
keycloak_1 | Please, take a look at the documentation for more details before deploying in
keycloak_1 | production.
keycloak_1 |
keycloak_1 | Use “kc.sh start --help” for the available options when starting the server.
keycloak_1 | Use “kc.sh --help” for more information about other commands.
keycloakpostgresdockerfile_keycloak_1 exited with code 0
Thanking you.