准备postgres数据库安装
步骤1:命令:
docker pull postgres
步骤2:安装:
docker run --name postgresdb -p 5432:5432 -e POSTGRES_PASSWORD=123465 -d postgres
步骤3:进入容器:
docker exec -it postgresdb bash # 进入docker容器
查看数据库命令:
\l
创建数据库:
CREATE DATABASE confluence WITH OWNER postgres;
\q
正式开始安装confluence
步骤1: 拉去docker官方镜像
https://hub.docker.com/r/cptactionhank/atlassian-confluence/
步骤2:开始安装命令
使用80端口访问wiki请使用一下命令安装
docker run -d --name confluence -p 80:8090 --link postgresdb:db --user root:root cptactionhank/atlassian-confluence:latest
步骤3:检查confluence是否启动