mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-21 15:20:02 -05:00
18 lines
219 B
Terraform
18 lines
219 B
Terraform
|
|
resource "docker_service" "foo" {
|
||
|
|
name = "foo"
|
||
|
|
|
||
|
|
task_spec {
|
||
|
|
container_spec {
|
||
|
|
image = "nginx"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
endpoint_spec {
|
||
|
|
ports {
|
||
|
|
target_port = "80"
|
||
|
|
published_port = "8080"
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|