Last active
December 20, 2016 23:49
-
-
Save erichsu/73b09a6f82862f581dea10047c3d940d to your computer and use it in GitHub Desktop.
docker-confluence
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '2' | |
| services: | |
| confluence: | |
| image: "cptactionhank/atlassian-confluence" | |
| environment: | |
| - "CATALINA_OPTS= -Xms256m -Xmx384m" | |
| ports: | |
| - "80:8090" | |
| - "8091:8091" | |
| volumes: | |
| - "/data/confluence:/var/atlassian/application/confluence" | |
| links: | |
| - db | |
| db: | |
| image: "postgres:9.5" | |
| environment: | |
| - "POSTGRES_USER=confluence" | |
| - "POSTGRES_PASSWORD=password" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| sudo yum update -y && \ | |
| sudo yum install -y docker && \ | |
| sudo service docker start && \ | |
| sudo usermod -a -G docker ec2-user | |
| sudo curl -L "https://github.com/docker/compose/releases/download/1.8.1/docker-compose-$(uname -s)-$(uname -m)" > /usr/local/bin/docker-compose | |
| sudo chmod +x /usr/local/bin/docker-compose |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ## | |
| ## sudo visudo | |
| ## ubuntu ALL=(ALL) NOPASSWD:ALL | |
| # Ubuntu 16 | |
| sudo apt-get update && \ | |
| sudo apt-get install -y apt-transport-https ca-certificates && \ | |
| echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list | |
| # Ubuntu 14 | |
| sudo apt-get update && \ | |
| sudo apt-get install -y apt-transport-https ca-certificates && \ | |
| echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list | |
| sudo apt-get update && \ | |
| sudo apt-get install -y --allow-unauthenticated linux-image-extra-$(uname -r) linux-image-extra-virtual docker-engine && \ | |
| sudo service docker start && \ | |
| sudo usermod -aG docker $USER | |
| sudo -s | |
| curl -L "https://github.com/docker/compose/releases/download/1.9.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
| chmod +x /usr/local/bin/docker-compose | |
| exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment