version: '3.8'
services:
postgresql:
image: postgres
restart: unless-stopped
ports:
- 5433:5432
environment:
- POSTGRES_USER=keycloak
- POSTGRES_DB=keycloak
- POSTGRES_PASSWORD=keycloak
volumes:
- postgresql_data:/bitnami/postgresql
keycloak:
image: docker.io/bitnami/keycloak:latest
# restart: unless-stopped
ports:
- "8088:8080"
environment:
- KEYCLOAK_CREATE_ADMIN_USER=true
- KEYCLOAK_ADMIN_USER=user
- KEYCLOAK_ADMIN_PASSWORD=password
- KEYCLOAK_MANAGEMENT_USER=manager
- KEYCLOAK_MANAGEMENT_PASSWORD=password
- KEYCLOAK_DATABASE_HOST=postgresql
- KEYCLOAK_DATABASE_PORT=5432
- KEYCLOAK_DATABASE_NAME=keycloak
- KEYCLOAK_DATABASE_USER=keycloak
- KEYCLOAK_DATABASE_SCHEMA=public
- KEYCLOAK_DATABASE_PASSWORD=keycloak
depends_on:
- postgresql
links:
- postgresql
volumes:
- keycloak_data:/opt/bitnami/keycloak
volumes:
postgresql_data:
driver: local
keycloak_data:
driver: local
上一篇
Elasticsearch-集群部署
2023-04-26
下一篇
Storm-单机部署
2023-04-26