Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ RUN set -x \
&& chown -R daemon:daemon "${CONF_INSTALL}/temp" \
&& chown -R daemon:daemon "${CONF_INSTALL}/logs" \
&& chown -R daemon:daemon "${CONF_INSTALL}/work" \
&& chown -R daemon:daemon "${CONF_INSTALL}/confluence/WEB-INF/classes" \
&& echo -e "\nconfluence.home=$CONF_HOME" >> "${CONF_INSTALL}/confluence/WEB-INF/classes/confluence-init.properties" \
&& xmlstarlet ed --inplace \
--delete "Server/@debug" \
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ docker run --detach --publish 8090:8090 cptactionhank/atlassian-confluence:lates

Then simply navigate your preferred browser to `http://[dockerhost]:8090` and finish the configuration.

## Configuration

### Number of log files to keep

By default Confluence comes with the configuration of 5 files of 20MB each to keep (and rotate).
There's a possibility to override the number of files with the environment variable called `NUMBER_OF_FILES_TO_KEEP`.

Usage:
```
docker run ... -e "NUMBER_OF_LOG_FILES_TO_KEEP=50"
```

## Contributions

This image has been created with the best intentions and an good understanding of Docker, but it should not be expected to be flawless. Should you be in the position to do so, I request that you help support this repository with best-practices and other additions.
Expand Down
3 changes: 3 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@ if [ -f "${CERTIFICATE}" ]; then
keytool -noprompt -storepass changeit -keystore ${JAVA_CACERTS} -import -file ${CERTIFICATE} -alias CompanyCA
fi

if [ -n "${NUMBER_OF_LOG_FILES_TO_KEEP}" ]; then
sed -i -r "s/log4j.appender.confluencelog.MaxBackupIndex=[0-9]+/log4j.appender.confluencelog.MaxBackupIndex=${NUMBER_OF_LOG_FILES_TO_KEEP}/g" $CONF_INSTALL/confluence/WEB-INF/classes/log4j.properties
fi

exec "$@"