Sign inSign up

gomex/journal

By gomex

Updated about 9 years ago

Journal image

Image
0

344

gomex/journal repository overview

Journals

Dependencies

Install ansible, awscli and boto

pip install ansible awscli boto

Configure your AWS credencials

aws configure

You need to generate a key pair on AWS Console and add its name on 'template_parameters' section inside deploy.yml

Creating Swarm Cluster

ansible-playbook deploy.yml

This command will create a stack on cloudformation on AWS, please check the stack

This cloudformation template was done by Docker for the Docker-for-aws product

Configuring your access to docker Swarm

After create the stack, check the output and click on Managers link and get the public DNS name.

ssh -i <path-to-private-key> -NL localhost:2374:/var/run/docker.sock docker@<public DNS name> &
export DOCKER_HOST='localhost:2374'
docker info

Deploying the application

Attention: Please check if the docker-compose.yml, the value of hibernatevalue should be create in the first time, because you neeed to create the BD scheme, but after that, please change to none.

docker deploy --compose-file docker-compose.yml journals
docker service ls
docker service ps journals

About docker image

It are building using Automated build of docker hub.

Tag summary

Content type

Image

Digest

Size

109.4 MB

Last updated

about 9 years ago

docker pull gomex/journal