29 lines
540 B
YAML
29 lines
540 B
YAML
version: "3"
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres
|
|
volumes:
|
|
- db:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_USER: keycloak
|
|
POSTGRES_PASSWORD: keycloak
|
|
keycloak:
|
|
build:
|
|
context: keycloak
|
|
environment:
|
|
DB_VENDOR: POSTGRES
|
|
DB_ADDR: postgres
|
|
DB_DATABASE: keycloak
|
|
DB_USER: keycloak
|
|
DB_SCHEMA: public
|
|
DB_PASSWORD: keycloak
|
|
KEYCLOAK_USER: admin
|
|
KEYCLOAK_PASSWORD: admin
|
|
ports:
|
|
- 8080:8080
|
|
depends_on:
|
|
- postgres
|
|
|
|
volumes:
|
|
db:
|