docker-compose-host

djangulo/docker-compose-host/digitalocean

Terraform Module HCL DIGITALOCEAN

Terraform module for a DO droplet initialized with docker and docker-compose.

Install
module "docker-compose-host" {
source = "djangulo/docker-compose-host/digitalocean"
version = "0.2.7"
}
plain text: /constructs/tfmod-djangulo-docker-compose-host-digitalocean/install.txt
⭐ Source on GitHub 📦 Registry page
README

docker-compose host Simple module to initialize an extendible ubuntu droplet with docker and docker-compose. Considerations - As of yet, the docker provisioning will only work on ubuntu-{16-04, 18-04, 19-10}-x64 droplets. - Per docker installation instructions, only 64-bit versions of Ubuntu servers are fully tested and supported. - Here is a list of the DO supported images: | ID | Name | Distribution | Slug | | -------: | :----- | :---------------- | :----------------- | | 55022766 | Ubuntu | 16.04.6 (LTS) x64 | ubuntu-16-04-x64 | | 53893572 | Ubuntu | 18.04.3 (LTS) x64 | ubuntu-18-04-x64 | | 53871280 | Ubuntu | 19.10 x64 | ubuntu-19-10-x64 | Inputs | Name | Description | Type | Default | Required | | :---------------------------------------------------- | :-------------------------------

Inputs (12)
NameTypeDescriptionDefault
do_tokenstringDigitalOcean authentication token. required
droplet_namestringName of the DigitalOcean droplet. Must be unique. required
regionstringRegion to assign the droplet to."nyc3"
sizestringDroplet size"s-1vcpu-1gb"
domainstringDomain to assign to droplet. If set, will automatically create an A record that ""
tagslist(string)Tags to set on the droplet.[]
recordsmap(object({ domain = striDNS records to create. The key to the map is the "name" attribute. If "value"=="{}
userstringUsername of user to be added to the droplet."ubuntu"
ssh_private_keystringSSH private key to access the server. ("-----BEGIN OPENSSH PRIVATE KEY-----" ...""
imagestringImage slug for the desired image. See 'available-images.txt' for a list."ubuntu-18-04-x64"
ssh_keyslist(string)List of SSH IDs or fingerprints to enable. They must already exist in your DO ac[]
init_scriptstringInitialization script to run"./init.sh"
Outputs (3)
id — ID of the created droplet.
name — Name of the created droplet.
ipv4_address — Public IPv4 address of the droplet.
Resources (3)
digitalocean_domaindigitalocean_dropletdigitalocean_record
Details
FrameworkTerraform Module
LanguageHCL
Version0.2.7
Cloud DIGITALOCEAN
★ Stars0
Forks3
Total downloads941
Inputs12
Outputs3
Resources3
LicenseMIT
Namespacedjangulo
Updated