INT 21h

Hi, I am Vladimir Smagin, SysAdmin and Kaptain. Telegram Email / GIT / Thingiverse / RSS / GPG

Terraform docker provider: wordpress + mysql

№ 9409 В разделе "Sysadmin" от September 13th, 2018,
В подшивках: , ,

Terraform infrastructure sample for docker provider. Creates docker containers on local machine.

CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                 NAMES
a647e8f04629        6a834f03bd02        "docker-entrypoint.s…"   10 minutes ago      Up 10 minutes       3306/tcp, 33060/tcp   mysql
e69d24a3920a        63b422244491        "docker-entrypoint.s…"   13 minutes ago      Up 13 minutes       80/tcp                wordpress

How to run:

vlad@turtle:$ terraform init

... some strings

vlad@turtle:$ terraform apply
 
... some strings

Apply complete! Resources: 2 added, 0 changed, 0 destroyed.

Outputs:

address_my = 172.17.0.2
address_wp = 172.17.0.3

You can find repository here https://git.blindage.org/21h/terraform-samples

Нет комментариев »

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Яндекс.Метрика

Fortune cookie: She's fine, upstanding, and wonderful laying down.