mirror of https://github.com/docker/docs.git
Removed Build from Compose on Docker Desktop Example (#8750)
* Removed Build from Compose.yaml on Compose to Kubernetes * Removed build from UCP example too
This commit is contained in:
parent
d82934a2c1
commit
c2d80906a1
|
@ -145,28 +145,23 @@ version: '3.3'
|
|||
|
||||
services:
|
||||
web:
|
||||
build: web
|
||||
image: dockerdemos/lab-web
|
||||
volumes:
|
||||
- "./web/static:/static"
|
||||
image: dockersamples/k8s-wordsmith-web
|
||||
ports:
|
||||
- "80:80"
|
||||
|
||||
words:
|
||||
build: words
|
||||
image: dockerdemos/lab-words
|
||||
image: dockersamples/k8s-wordsmith-api
|
||||
deploy:
|
||||
replicas: 5
|
||||
endpoint_mode: dnsrr
|
||||
resources:
|
||||
limits:
|
||||
memory: 16M
|
||||
memory: 50M
|
||||
reservations:
|
||||
memory: 16M
|
||||
memory: 50M
|
||||
|
||||
db:
|
||||
build: db
|
||||
image: dockerdemos/lab-db
|
||||
image: dockersamples/k8s-wordsmith-db
|
||||
```
|
||||
|
||||
If you already have a Kubernetes YAML file, you can deploy it using the
|
||||
|
|
|
@ -29,19 +29,16 @@ version: '3.3'
|
|||
|
||||
services:
|
||||
web:
|
||||
build: web
|
||||
image: dockersamples/k8s-wordsmith-web
|
||||
ports:
|
||||
- "8080:80"
|
||||
|
||||
words:
|
||||
build: words
|
||||
image: dockersamples/k8s-wordsmith-api
|
||||
deploy:
|
||||
replicas: 5
|
||||
|
||||
db:
|
||||
build: db
|
||||
image: dockersamples/k8s-wordsmith-db
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue