Atlassian Confluence is a rich Wiki.
For all aspects about configuring, using and administering confluence please see The Official Confluence Documentation.
The examples shown below assume you will use a MySQL database.
Please pay attention to the IP addresses used in the examples below. The IP
192.168.1.2refers to your host OS. The IP172.17.0.2refers to the MySQL database and the IP172.17.0.3to the newly installed Confluence guest OS. To figure out the IP in your guest OS you can either connect to a running instance by issuingdocker exec -it [container-name] /bin/bashand doifconfigor locate the IP fromdocker inspect [container-name].
Important notice: The Postgres driver is shipped with the confluence distribution, whereas the MySQL driver will be downloaded when running the image.
MySQL setup (assuming that MySQL isn't installed yet):
$ docker run -d -p 3306:3306 --name mysql -v /var/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=[db-password] mysql/mysql-server:5.6
$ mysql -h 172.17.0.2 -u root -p[db-password]
CREATE DATABASE IF NOT EXISTS confluence CHARACTER SET utf8 COLLATE utf8_bin;
If you use a default Docker installation with no images installed, the assigned IP for MySQL will be: 172.17.0.2.
Optionally you may configure security constraints by:
GRANT ALL PRIVILEGES ON confluence.* TO '[appuser]'@'172.17.0.3' IDENTIFIED BY '[apppassword]' with grant option;
Please notice that the
[appuser]and[apppassword]must be configured to what is appropriate for your system.
Run docker using port 8090 on your host (if available):
docker run -p 8090:8090 descoped/confluence
Run with data outside the container using a volume:
$ docker run --name confluence -v /var/confluence:/var/atlassian-home -e CONTEXT_PATH=ROOT -e DATABASE_URL=mysql://[username]:[password]@172.17.0.2/confluence -p 8090:8090 descoped/confluence
To stop the running instance:
$ docker confluence stop
To start running instance:
$ docker confluence start
The mappable VOLUME is: /var/atlassian-home
http://192.168.1.2:8090/
The host IP is assumed to be 192.168.1.2.
The connection to the database can be specified with an URL of the format:
[database type]://[username]:[password]@[host]:[port]/[database name]
Where database type is either mysql or postgresql and the full URL look like this:
MySQL:
mysql://<username>:<password>@172.17.0.2/confluence
PostgreSQL:
postgresql://<username>:<password>@172.17.0.2/confluence
Configuration options are set by setting environment variables when running the image. What follows it a table of the supported variables:
| Variable | Function |
|---|---|
| CONTEXT_PATH | Context path of the Confluence webapp. You can set this to add a path prefix to the url used to access the webapp. i.e. setting this to confluence will change the url to http://192.168.1.2:8090/confluence/. The value ROOT is reserved to mean that you don't want a context path prefix. Defaults to ROOT |
| DATABASE_URL | Connection URL specifying where and how to connect to a database dedicated to Confluence. This variable is optional and if specified will cause the Confluence setup wizard to skip the database setup set. |
| JNDI_DATASOURCE | Naming context for the JNDI datasource. A value of confluence will set the JNDI Datasource to java:comp/env/jdbc/confluence. |
If you want to contribute to this project or make use of the source code; you'll find it on GitHub.
docker build -t descoped/confluence .
Content type
Image
Digest
Size
838.4 MB
Last updated
almost 9 years ago
docker pull descoped/confluence