36 lines
879 B
YAML
36 lines
879 B
YAML
services:
|
|
keycloak:
|
|
container_name: baeldung-keycloak
|
|
image: quay.io/keycloak/keycloak:26.4
|
|
command:
|
|
- start-dev
|
|
- --import-realm
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- ./keycloak/:/opt/keycloak/data/import/
|
|
environment:
|
|
KEYCLOAK_ADMIN: admin
|
|
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
|
|
KC_HTTP_PORT: 8080
|
|
KC_HOSTNAME_URL: http://localhost:8080
|
|
KC_HOSTNAME_ADMIN_URL: http://localhost:8080
|
|
KC_HOSTNAME_STRICT_BACKCHANNEL: true
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
postgres:
|
|
image: postgres:16
|
|
container_name: frisbyee-postgres
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
POSTGRES_DB: frisbyee
|
|
POSTGRES_USER: frisbyee_user
|
|
POSTGRES_PASSWORD: secret
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
postgres_data:
|