Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Merge ../atlassian-base
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Silva committed Feb 28, 2015
2 parents 72fb186 + fb12f2e commit c602c3b
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,18 @@ run other applications in the same host.
This is a common feature of the atlassian images generetad by Atende Tecnology.

See the [Instructions](RUNNING_PROXY.md)

## Easy Running Everything at Once

Using [Crane](https://github.com/michaelsauter/crane) you can easy startup all containers at once respecting its dependencies. This is by far the easy way to create a environment with several atlassian tools and ready for production. Just install docker, install crane and see [crane.yml](crane.yml) file.
Change the file with your values and create the databases for each application
in the *postgresql* container and configure each application accessing it interface.

If you keep the proxy settings (see [Running behind Proxy](RUNNING_PROXY.md) for details),
it will also automatically create the proxy. Now you just need to change your DNS server

If you are migrating, restore your data in the data containers, and in the database

The startup script for crane command could be something like that:

/usr/local/bin/crane lift -c /etc/crane.yml > /dev/null 2>&1
74 changes: 74 additions & 0 deletions crane.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
containers:
pgsql_datastore:
image: busybox
run:
volume: ["/data"]
cmd: ["echo 'pgsql data'"]
detach: true
postgresql:
image: atende/postgresql
run:
volumes-from: ["pgsql_datastore"]
detach: true
nginx:
image: atende/nginx-proxy
run:
volume: ["/opt/certs:/etc/nginx/certs","/var/run/docker.sock:/tmp/docker.sock"]
publish: ["80:80","443:443"]
detach: true
jira_home:
image: busybox
run:
volume: ["/opt/jira-home"]
cmd: ["echo 'jira data'"]
detach: true
confluence_home:
image: busybox
run:
volume: ["/opt/confluence-home"]
cmd: ["echo 'confluence data'"]
detach: true
stash_home:
image: busybox
run:
volume: ["/opt/stash-home"]
cmd: ["echo 'stash data'"]
detach: true
crowd_home:
image: busybox
run:
volume: ["/opt/crowd-home"]
cmd: ["echo 'crowd data'"]
detach: true
jira:
image: atende/jira
run:
env: ["VIRTUAL_HOST=project.company.com","PROXY_SCHEME=https","PROXY_PORT=443","PROXY_SECURED=true"]
volumes-from: ["jira_home"]
publish: ["8080"]
link: ["postgresql:db"]
detach: true
confluence:
image: atende/confluence
run:
env: ["VIRTUAL_HOST=wiki.company.com","PROXY_SCHEME=https","PROXY_PORT=443","PROXY_SECURED=true"]
volumes-from: ["confluence_home"]
publish: ["8090"]
link: ["postgresql:db"]
detach: true
stash:
image: atende/stash
run:
env: ["VIRTUAL_HOST=code.company.com","PROXY_SCHEME=https","PROXY_PORT=443","PROXY_SECURED=true"]
volumes-from: ["stash_home"]
publish: ["7990"]
link: ["postgresql:db"]
detach: true
crowd:
image: atende/crowd
run:
env: ["VIRTUAL_HOST=auth.company.com","PROXY_SCHEME=https","PROXY_PORT=443","PROXY_SECURED=true"]
volumes-from: ["crowd_home"]
publish: ["8095"]
link: ["postgresql:db"]
detach: true

0 comments on commit c602c3b

Please sign in to comment.