It's Atlassian docker compose file, to run Atlassian products with docker on one single machine.
jira.example.com wiki.example.com
+ +
| |
+----------------------------------------+
|
v
Nginx
+
+-----------------------------------------+
| | |
v v
Atlassian Jira Atlassian Confluence
[host:jira:8080] [host:Confluence:8090]
+ |
| |
+-----------------------------------------+
|
v
Postgres
[host:database:5432]
+
|
+------------------------------------------+
| |
v v
[db:jira] [db:wiki]
Atlassian supported products:
- Jira
latest
- Confluence
latest
With:
- Postgres
9.4
- Nginx
latest
Requirements:
- Docker version 1.13.1+
- docker-compose version 1.10.0+
Docker image source files:
How to use:
-
Clone the atlassian folder:
$ git clone https://github.com/Nosphorus/atlassian
-
Set the nginx environment variable:
Example: $ export DOMAIN=example.com
-
Run docker compose:
$ docker-compose -p atlassian up
-
Set
DNS
according to the aboveDOMAIN
value, on somewhere that you want to connect to host ofdocker-compose
:$ vim /etc/hosts 127.0.0.1 jira.example.com www.jira.example.com 127.0.0.1 wiki.example.com www.wiki.example.com
Replace 127.0.0.1
with IP of host that docker-compose
command is run on.
-
Create Databases for the applications:
$ docker exec -it atlassian_database_1 psql -U postgres postgres=# CREATE DATABASE jira; postgres=# CREATE DATABASE wiki; postgres=# \l postgres-# \q
-
Browse Atlassian products:
``` http://jira.example.com http://wiki.example.com ```
Notes:
Data persists on named volumes, use the code below to view them:
$ docker volume ls
local atlassian_confluence-data
local atlassian_jira-data
local atlassian_database-data