Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.
/ DOCKER_ANSIBLE Public archive

Configure ANSIBLE + DOCKER + DOCKER-COMPOSE for webserver (Apache2, Python), Load Balancer (Nginx), and mysql

Notifications You must be signed in to change notification settings

macedojleo/DOCKER_ANSIBLE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#BUILD IMAGE

#docker build .

#START DOCKER: $ docker run --name -d tail -f /dev/null

#STOP DOCKER: $ docker stop <docker_id>

#USING COMPOSE: #START: $ docker-compose up -d

#STOP $ docker-compose down

#Check

docker ps

=========================== #CONFIG ANSIBLE (control host):

touch /etc/ansible/ansible.cfg

============================ NETWORK:

#Install SSH server for each host:

apt-get update; apt-get install -y openssh-server;service ssh start

#Generate SSH key for each host:

ssh-keygen -t rsa

#Copy public key into authorized_Key file for all hosts:

About

Configure ANSIBLE + DOCKER + DOCKER-COMPOSE for webserver (Apache2, Python), Load Balancer (Nginx), and mysql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published