mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-20 22:59:42 -05:00
15 lines
227 B
Terraform
15 lines
227 B
Terraform
|
|
resource "docker_service" "foo" {
|
||
|
|
name = "foo-service"
|
||
|
|
|
||
|
|
task_spec {
|
||
|
|
container_spec {
|
||
|
|
image = "repo.mycompany.com:8080/foo-service:v1"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
endpoint_spec {
|
||
|
|
ports {
|
||
|
|
target_port = "8080"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|