Skip to content

Instantly share code, notes, and snippets.

@andyshinn
Created April 11, 2017 21:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyshinn/2811642aed3721c078efd2a1598fa8c6 to your computer and use it in GitHub Desktop.
Save andyshinn/2811642aed3721c078efd2a1598fa8c6 to your computer and use it in GitHub Desktop.
Confluence in Docker
version: "2"
services:
mysql:
image: mysql:5.6
environment:
MYSQL_ROOT_PASSWORD: myrootpass
MYSQL_DATABASE: confluence
MYSQL_USER: confluence
MYSQL_PASSWORD: myconfluencepass
confluence:
image: atlassian/confluence-server:6.1
ports:
- "8090:8090"
- "8091:8091"
links:
- mysql
volumes:
- confluence:/var/atlassian/application-data/confluence
volumes:
confluence:

Steps

  1. Run docker-compose up to bring up the two containers (Confluence and MySQL).
  2. Navigate to http://192.168.99.100:8090/ (replace the IP with the correct IP of your Docker Machine).
  3. Choose "Production Installation" and click the Next button.
  4. Click the Next button on the Add-ons screen.
  5. Add your license key and click Next.
  6. Choose "MySQL" and then click the External Database button.
  7. Click the Direct JDBC button.
  8. Change localhost to mysql in the Database URL, set User name to confluence, Password to myconfluencepass, and click Next.
  9. After a minute or two the database will be ready. Now you can choose to load an exmaple site or not. Choose Empty Site unless you have backup.
  10. Click Manage users and groups with Confluence unless you want to hook Confluence to JIRA.
  11. Create an admin account and click Next.

You are done! Click the Start button to go to Confluence and start using it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment