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
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
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
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
It are building using Automated build of docker hub.
Content type
Image
Digest
Size
109.4 MB
Last updated
about 9 years ago
docker pull gomex/journal