confluence default port: 8090
Requirement
docker-compose: 17.09.0+
How to run with docker-compose
start confluence & mysql
git clone https://github.com/haxqer/confluence.git
&& cd confluence
&& docker-compose up
start confluence & mysql daemon
docker-compose up -d
default db(mysql5.7) configure:
driver=mysql5.7+
host=mysql-confluence
port=3306
db=confluence
user=confluence
passwd=123123
How to run with docker
start confluence
docker run -p 8090:8090 -v ./confluence:/var/confluence --network confluence-network --name confluence-srv -e TZ='Asia/Shanghai' haxqer/confluence
config your own db:
How to hack confluence
docker exec confluence-srv java -jar /var/agent/atlassian-agent.jar
-p conf
-m [email protected]
-n [email protected]
-o http://website
-s you-server-id-xxxx
How to hack confluence plugin .eg I want to use BigGantt plugin Install BigGantt from confluence marketplace. Find App Key of BigGantt is : eu.softwareplant.biggantt Execute :
docker exec confluence-srv java -jar /var/agent/atlassian-agent.jar
-p eu.softwareplant.biggantt
-m [email protected]
-n [email protected]
-o http://website
-s you-server-id-xxxx
Paste your license Install docker & docker-compose If you use debian, just do it. ./script/debian-install-docker.sh ./script/linux-install-docker-compose.sh Set Proxy path : ~/.docker/config.json
content :
{ "proxies": { "default": { "httpProxy": "http://ip:port", "httpsProxy": "http://ip:port" } } }
Dockerfile
FROM openjdk:8-stretch
LABEL maintainer="K [email protected]"
ARG ATLASSIAN_PRODUCTION=confluence ARG APP_NAME=confluence ARG APP_VERSION=7.6.0 ARG AGENT_VERSION=1.2.2 ARG MYSQL_DRIVER_VERSION=5.1.49
ENV CONFLUENCE_HOME=/var/confluence
CONFLUENCE_INSTALL=/opt/confluence
JVM_MINIMUM_MEMORY=1g
JVM_MAXIMUM_MEMORY=3g
JVM_CODE_CACHE_ARGS='-XX:InitialCodeCacheSize=1g -XX:ReservedCodeCacheSize=2g'
AGENT_PATH=/var/agent
AGENT_FILENAME=atlassian-agent.jar
ENV JAVA_OPTS="-javaagent:${AGENT_PATH}/${AGENT_FILENAME} ${JAVA_OPTS}"
RUN mkdir -p ${CONFLUENCE_INSTALL} ${CONFLUENCE_HOME} ${AGENT_PATH}
&& curl -o ${AGENT_PATH}/${AGENT_FILENAME} https://github.com/haxqer/confluence/releases/download/v${AGENT_VERSION}/atlassian-agent.jar -L
&& curl -o /tmp/atlassian.tar.gz https://product-downloads.atlassian.com/software/confluence/downloads/atlassian-${APP_NAME}-${APP_VERSION}.tar.gz -L
&& tar xzf /tmp/atlassian.tar.gz -C /opt/confluence/ --strip-components 1
&& rm -f /tmp/atlassian.tar.gz
&& curl -o /opt/confluence/lib/mysql-connector-java-${MYSQL_DRIVER_VERSION}.jar https://repo1.maven.org/maven2/mysql/mysql-connector-java/${MYSQL_DRIVER_VERSION}/mysql-connector-java-${MYSQL_DRIVER_VERSION}.jar -L
&& echo "confluence.home = ${CONFLUENCE_HOME}" > ${CONFLUENCE_INSTALL}/${ATLASSIAN_PRODUCTION}/WEB-INF/classes/confluence-init.properties
WORKDIR $CONFLUENCE_INSTALL EXPOSE 8090
ENTRYPOINT ["/opt/confluence/bin/start-confluence.sh", "-fg"]
Content type
Image
Digest
Size
1.3 GB
Last updated
about 6 years ago
docker pull keygood/confluence