Docker部署
本文介绍使用 docker
来部署 TOPIAM 企业数字身份管控平台
。
提示
在阅读本文档前,你需要先阅读 部署先决条件 文档来完成部署 TOPIAM 企业数字身份管控平台 前的环境准备工作。
创建 Docker Network
docker network create TOPIAM
启动 TOPIAM 管理控制台
拉取镜像
docker pull ccr.ccs.tencentyun.com/TOPIAM/eiam-console-ce:${current.version}
创建配置文件
创建名为 TOPIAM.properties
的配置文件。
#datasource
spring.datasource.url=jdbc:mysql://${your_ip_port}/eiam?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
spring.datasource.username=${your_username}
spring.datasource.password=${your_password}
#redis
spring.data.redis.host=${your_ip_port}
spring.data.redis.password=${your_password}
#elasticsearch
spring.elasticsearch.uris=${your_ip_port}
spring.elasticsearch.username=${your_username}
spring.elasticsearch.password=${your_password}
#springdoc
springdoc.swagger-ui.enabled=true
#rabbitmq
spring.rabbitmq.host=${your_ip}
spring.rabbitmq.port=${your_port}
spring.rabbitmq.username=${your_username}
spring.rabbitmq.password=${your_password}
spring.rabbitmq.publisher-confirm-type=correlated
spring.rabbitmq.publisher-returns=true
spring.rabbitmq.virtual-host=/
spring.rabbitmq.dynamic=true
spring.rabbitmq.listener.simple.acknowledge-mode=manual
# server config
TOPIAM.server.console-public-base-url=${your_console_server_url}
TOPIAM.server.portal-public-base-url=${your_portal_server_url}
TOPIAM.server.openapi-public-base-url=${your_openapi_server_url}
TOPIAM.server.synchronizer-public-base-url=${your_synchronizer_server_url}
运行容器
docker run -d -p 1898:1898 -v /opt/TOPIAM/conf/console:/opt/TOPIAM/conf --name eiam-console-ce --net TOPIAM TOPIAM/eiam-console-ce:${current.version}
启动 TOPIAM 门户端
拉取镜像
docker pull ccr.ccs.tencentyun.com/TOPIAM/eiam-portal-ce:${current.version}
创建配置文件
创建名为 TOPIAM.properties
的配置文件。
#datasource
spring.datasource.url=jdbc:mysql://${your_ip_port}/eiam?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
spring.datasource.username=${your_username}
spring.datasource.password=${your_password}
#redis
spring.data.redis.host=${your_ip_port}
spring.data.redis.password=${your_password}
#elasticsearch
spring.elasticsearch.uris=${your_ip_port}
spring.elasticsearch.username=${your_username}
spring.elasticsearch.password=${your_password}
#springdoc
springdoc.swagger-ui.enabled=true
#rabbitmq
spring.rabbitmq.host=${your_ip}
spring.rabbitmq.port=${your_port}
spring.rabbitmq.username=${your_username}
spring.rabbitmq.password=${your_password}
spring.rabbitmq.publisher-confirm-type=correlated
spring.rabbitmq.publisher-returns=true
spring.rabbitmq.virtual-host=/
spring.rabbitmq.dynamic=true
spring.rabbitmq.listener.simple.acknowledge-mode=manual
# server config
TOPIAM.server.console-public-base-url=${your_console_server_url}
TOPIAM.server.portal-public-base-url=${your_portal_server_url}
TOPIAM.server.openapi-public-base-url=${your_openapi_server_url}
TOPIAM.server.synchronizer-public-base-url=${your_synchronizer_server_url}
运行容器
docker run -d -p 1989:1989 -v /opt/TOPIAM/conf/portal:/opt/TOPIAM/conf --name eiam-portal-ce --net TOPIAM TOPIAM/eiam-portal-ce:${current.version}
启动 TOPIAM 同步器
拉取镜像
docker pull ccr.ccs.tencentyun.com/TOPIAM/eiam-synchronizer-ce:${current.version}
创建配置文件
创建名为 TOPIAM.properties
的配置文件。
#datasource
spring.datasource.url=jdbc:mysql://${your_ip_port}/eiam?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
spring.datasource.username=${your_username}
spring.datasource.password=${your_password}
#redis
spring.data.redis.host=${your_ip_port}
spring.data.redis.password=${your_password}
#elasticsearch
spring.elasticsearch.uris=${your_ip_port}
spring.elasticsearch.username=${your_username}
spring.elasticsearch.password=${your_password}
#springdoc
springdoc.swagger-ui.enabled=true
#rabbitmq
spring.rabbitmq.host=${your_ip}
spring.rabbitmq.port=${your_port}
spring.rabbitmq.username=${your_username}
spring.rabbitmq.password=${your_password}
spring.rabbitmq.publisher-confirm-type=correlated
spring.rabbitmq.publisher-returns=true
spring.rabbitmq.virtual-host=/
spring.rabbitmq.dynamic=true
spring.rabbitmq.listener.simple.acknowledge-mode=manual
# server config
TOPIAM.server.console-public-base-url=${your_console_server_url}
TOPIAM.server.portal-public-base-url=${your_portal_server_url}
TOPIAM.server.openapi-public-base-url=${your_openapi_server_url}
TOPIAM.server.synchronizer-public-base-url=${your_synchronizer_server_url}
运行容器
docker run -d -p 1986:1986 -v /opt/TOPIAM/conf/synchronizer:/opt/TOPIAM/conf --name eiam-synchronizer-ce --net TOPIAM TOPIAM/eiam-synchronizer-ce:${current.version}
启动 TOPIAM OpenAPI
拉取镜像
docker pull ccr.ccs.tencentyun.com/TOPIAM/eiam-openapi-ce:${current.version}
创建配置文件
创建名为 TOPIAM.properties
的配置文件。
#datasource
spring.datasource.url=jdbc:mysql://${your_ip_port}/eiam?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
spring.datasource.username=${your_username}
spring.datasource.password=${your_password}
#redis
spring.data.redis.host=${your_ip_port}
spring.data.redis.password=${your_password}
#elasticsearch
spring.elasticsearch.uris=${your_ip_port}
spring.elasticsearch.username=${your_username}
spring.elasticsearch.password=${your_password}
#springdoc
springdoc.swagger-ui.enabled=true
#rabbitmq
spring.rabbitmq.host=${your_ip}
spring.rabbitmq.port=${your_port}
spring.rabbitmq.username=${your_username}
spring.rabbitmq.password=${your_password}
spring.rabbitmq.publisher-confirm-type=correlated
spring.rabbitmq.publisher-returns=true
spring.rabbitmq.virtual-host=/
spring.rabbitmq.dynamic=true
spring.rabbitmq.listener.simple.acknowledge-mode=manual
# server config
TOPIAM.server.console-public-base-url=${your_console_server_url}
TOPIAM.server.portal-public-base-url=${your_portal_server_url}
TOPIAM.server.openapi-public-base-url=${your_openapi_server_url}
TOPIAM.server.synchronizer-public-base-url=${your_synchronizer_server_url}
运行容器
docker run -d -p 1988:1988 -v /opt/TOPIAM/conf/openapi:/opt/TOPIAM/conf --name eiam-openapi-ce --net TOPIAM TOPIAM/eiam-openapi-ce:${current.version}