Keycloak integration
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build was killed

This commit is contained in:
Víðir Valberg Guðmundsson 2023-01-22 10:20:41 +01:00
parent b9f77251f1
commit a9a88c9290

View file

@ -14,6 +14,7 @@ services:
- ./:/app/ - ./:/app/
depends_on: depends_on:
- postgres - postgres
- keycloak
env_file: env_file:
- env - env
@ -26,5 +27,25 @@ services:
env_file: env_file:
- env - env
keycloak_db:
image: postgres:13-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- env
keycloak:
image: "quay.io/keycloak/keycloak:20.0"
restart: "unless-stopped"
command:
- "start-dev"
- "--db=postgres"
- "--db-url=jdbc:postgresql://keycloak_db:5432/postgres"
- "--db-username=postgres"
- "--db-password=postgres"
- "--hostname=localhost"
- "--http-relative-path=/auth"
volumes: volumes:
postgres_data: postgres_data: