# to_container

Set the target container port.

```rhai
service.to_container(port) -> Service
```

## Parameters

- `port` (int): Target port on the container

## Returns

Returns the `Service` builder for method chaining.

## Examples

```rhai
// Service port 80 routes to container port 8080
let svc = namespace.service("web-svc")
    .selector("app", "web")
    .expose(80)
    .to_container(8080)
    .apply();
```

## Notes

- This is a chainable method
- Alias: `to()` can be used instead
- Target port must match the port exposed by the container
