docker-compose-host
djangulo/docker-compose-host/digitalocean
Terraform module for a DO droplet initialized with docker and docker-compose.
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 | | :---------------------------------------------------- | :-------------------------------
| Name | Type | Description | Default |
|---|---|---|---|
| do_token | string | DigitalOcean authentication token. | required |
| droplet_name | string | Name of the DigitalOcean droplet. Must be unique. | required |
| region | string | Region to assign the droplet to. | "nyc3" |
| size | string | Droplet size | "s-1vcpu-1gb" |
| domain | string | Domain to assign to droplet. If set, will automatically create an A record that | "" |
| tags | list(string) | Tags to set on the droplet. | [] |
| records | map(object({ domain = stri | DNS records to create. The key to the map is the "name" attribute. If "value"==" | {} |
| user | string | Username of user to be added to the droplet. | "ubuntu" |
| ssh_private_key | string | SSH private key to access the server. ("-----BEGIN OPENSSH PRIVATE KEY-----" ... | "" |
| image | string | Image slug for the desired image. See 'available-images.txt' for a list. | "ubuntu-18-04-x64" |
| ssh_keys | list(string) | List of SSH IDs or fingerprints to enable. They must already exist in your DO ac | [] |
| init_script | string | Initialization script to run | "./init.sh" |
id — ID of the created droplet.name — Name of the created droplet.ipv4_address — Public IPv4 address of the droplet.