docs/compose
Zane Dufour 7e7645082e
Add --service-ports note to ports section (#12658)
* Add --service-ports note to ports section

## Description

Add note in `ports` section of file reference docs pointing to the `run` command's `--service-ports` flag

## Motivation

Spent quite a few hours spinning my wheels before I came across `run`'s `--service-ports` flag.

I'm struggling to find the issue where I found this, but the comment pointing to `--service-ports` had a lot of reacts, so this might be a relatively common 

## Things I'd still like to do

- [ ] link to the [`--service-ports` docs](https://github.com/docker/docker.github.io/blob/master/compose/reference/run.md) -- not sure how to do this
- [ ] clean up location of this note -- not sure if I've put the note in a good place -- we can shunt it to the bottom
- [ ] Duplicate for older versions

Thanks

* Minor style update

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
2021-04-23 16:17:59 +01:00
..
compose-file Add --service-ports note to ports section (#12658) 2021-04-23 16:17:59 +01:00
images move compose examples to the samples directory 2021-04-19 10:38:56 +02:00
reference compose: move reference/overview page 2021-04-19 10:54:04 +02:00
cli-command-compatibility.md Update compose-cli compatibility list 2021-04-09 09:54:35 -03:00
cli-command.md Debugging the codeblock in the Linux install for Compose CLI (#12551) 2021-03-23 21:37:57 +00:00
completion.md Minor style update 2021-03-25 15:29:17 +00:00
env-file.md Update docs on Compose environment files (#12514) 2021-03-23 21:42:08 +00:00
environment-variables.md Update docs on Compose environment files (#12514) 2021-03-23 21:42:08 +00:00
extends.md compose: move reference/overview page 2021-04-19 10:54:04 +02:00
faq.md compose: move reference/overview page 2021-04-19 10:54:04 +02:00
gettingstarted.md use Dockerfile "syntax" directive in examples 2021-04-20 10:19:12 +02:00
gpu-support.md Updated the link to use relative path 2021-02-16 10:24:11 +00:00
index.md compose: move reference/overview page 2021-04-19 10:54:04 +02:00
install.md Update dependencies on install 2021-02-15 12:40:55 -03:00
networking.md compose: move reference/overview page 2021-04-19 10:54:04 +02:00
production.md TASK: Add codeblocks to code examples 2021-03-04 12:06:54 +01:00
profiles.md compose: move reference/overview page 2021-04-19 10:54:04 +02:00
release-notes.md Fix a typo 2021-04-15 15:54:31 +01:00
samples-for-compose.md move compose examples to the samples directory 2021-04-19 10:38:56 +02:00
startup-order.md (temporarily) replace compose-file deep links to v3 docs 2021-01-07 14:21:37 +01:00