Skip to content

Commit

Permalink
Update stack-yaml-reference.md (docker#3653)
Browse files Browse the repository at this point in the history
  • Loading branch information
scjane authored and Misty Stanley-Jones committed Jun 20, 2017
1 parent b63c1ae commit e3ddcf6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docker-cloud/apps/stack-yaml-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ redis:
image: redis
```
Each key defined in `docker-cloud.yml` creates a service with that name in Docker Cloud. In the example above, three services are created: `lb`, `web` and `redis`. Each service is a dictionary whose possible keys are documented below.
Each key defined in `docker-cloud.yml` creates a service with that name in Docker Cloud. In the example above, three services are created: `lb`, `web`, and `redis`. Each service is a dictionary whose possible keys are documented below.

The `image` key is mandatory. Other keys are optional and are analogous to their [Docker Cloud Service API](/apidocs/docker-cloud.md#create-a-new-service) counterparts.
The `image` key is mandatory. Other keys are optional and are analogous to their [Docker Cloud Service API](/apidocs/docker-cloud.md#create-a-new-service) counterparts.

## image (required)

Expand Down Expand Up @@ -287,7 +287,11 @@ volumes:
```

## volumes_from
Mount all of the volumes from another service by specifying a service unique name. If the target service belongs to this stack its service unique name is its service name. If the target service does not belong to any stack its service unique name is its service name. If the target service belongs to another stack its service unique name is its service name plus the service stack name, separated by ".". Learn more [here](volumes.md).
Mount all of the volumes from another service by specifying a service unique name.

- If the target service belongs to this stack its service unique name is its service name.
- If the target service does not belong to any stack its service unique name is its service name.
- If the target service belongs to another stack its service unique name is its service name plus the service stack name, separated by ".". Learn more [here](volumes.md).

```yml
volumes_from:
Expand Down

0 comments on commit e3ddcf6

Please sign in to comment.