Skip to content

Commit

Permalink
docs(docker): add usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
juwit committed Jan 3, 2025
1 parent 08147d8 commit 3ae4d4a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/resources/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,24 @@ Manage [Docker](https://www.docker.com/) applications.

See [Docker product](https://www.clever-cloud.com/doc/getting-started/by-language/docker/) specification.

## Example Usage

```terraform
resource "clevercloud_docker" "docker_instance" {
name = "docker_instance"
region = "par"
# horizontal scaling
min_instance_count = 1
max_instance_count = 2
# vertical scaling
smallest_flavor = "XS"
biggest_flavor = "M"
additional_vhosts = ["example.com"]
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down
14 changes: 14 additions & 0 deletions examples/resources/clevercloud_docker/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
resource "clevercloud_docker" "docker_instance" {
name = "docker_instance"
region = "par"

# horizontal scaling
min_instance_count = 1
max_instance_count = 2

# vertical scaling
smallest_flavor = "XS"
biggest_flavor = "M"

additional_vhosts = ["example.com"]
}

0 comments on commit 3ae4d4a

Please sign in to comment.