ENGDOCS-1376 (#17406)

This commit is contained in:
Allie Sadler 2023-05-25 12:36:24 +01:00 committed by GitHub
parent 9897261444
commit 28e0cde463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 46 additions and 42 deletions

View File

@ -62,6 +62,7 @@ services.
**docker-compose.yml**
```yaml
services:
web:
image: example/my_web_app:latest
depends_on:
@ -81,6 +82,7 @@ host, mounts our code as a volume, and builds the web image.
**docker-compose.override.yml**
```yaml
services:
web:
build: .
volumes:
@ -109,6 +111,7 @@ repo or managed by a different team).
**docker-compose.prod.yml**
```yaml
services:
web:
ports:
- 80:80
@ -143,10 +146,11 @@ database backup.
Start with a **docker-compose.yml**.
```yaml
services:
web:
image: example/my_web_app:latest
depends_on:
- db
db
db:
image: postgres:latest
@ -156,6 +160,7 @@ In a **docker-compose.admin.yml** add a new service to run the database
export or backup.
```yaml
services:
dbadmin:
build: database_admin/
depends_on:
@ -443,7 +448,6 @@ services:
- ./local:/baz
```
## Reference information
[`extends`](compose-file/05-services.md#extends)