Skip to content

Commit 27226b6

Browse files
committed
update ports property
1 parent 668a4e0 commit 27226b6

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

docs/concepts/compose-support.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,13 @@ image: nginx:latest
9999
### `ports`
100100
(Optional, but required if you want to access the service from outside the container)
101101

102-
The ports to expose. Can be formatted as `"published:target"`.
102+
The ports to expose. Mode should be specified as `ingress`.
103103

104104
```yaml
105105
ports:
106-
- "8080:80"
107-
```
108-
109-
Alternatively, you can use this notation:
110-
```yaml
111-
ports:
112-
- target: 80
106+
- mode: ingress
107+
target: 80
113108
published: 8080
114-
mode: ingress
115109
```
116110

117111
:::info

0 commit comments

Comments
 (0)