Skip to content

maurouberti/digitalocean-terraform-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Badge Static Badge Static Badge Static Badge

Static Badge Static Badge Static Badge

DigitalOcean

Terraform na DigitalOcean provisionando um droplet com docker-compose usando um servidor nginx com suporte a PHP-FPM e Node.js.

ssh

ssh-keygen -t rsa -C "[email protected]" -f ./tokens/tf-digitalocean-exemplo
chmod 600 ./tokens/tf-digitalocean-exemplo

terraform

terraform init
terraform apply -auto-approve

ansible

ansible-playbook ./ansible/playbook.yml -i ./ansible/hosts --private-key=./tokens/tf-digitalocean-exemplo

acessar droplet via ssh

ssh [email protected] -i ./tokens/tf-digitalocean-exemplo

Excluir infra

terraform destroy -auto-approve
rm -f ./tokens/tf-digitalocean-exemplo ./tokens/tf-digitalocean-exemplo.pub
rm -rf .terraform && rm terraform.tfstate && rm terraform.tfstate.backup && rm .terraform.lock.hcl

About

Docker na DigitalOcean com terraform

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published