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:
|
services:
|
||||||
web:
|
web:
|
||||||
build: web
|
image: dockersamples/k8s-wordsmith-web
|
||||||
image: dockerdemos/lab-web
|
|
||||||
volumes:
|
|
||||||
- "./web/static:/static"
|
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
|
|
||||||
words:
|
words:
|
||||||
build: words
|
image: dockersamples/k8s-wordsmith-api
|
||||||
image: dockerdemos/lab-words
|
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 5
|
replicas: 5
|
||||||
endpoint_mode: dnsrr
|
endpoint_mode: dnsrr
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: 16M
|
memory: 50M
|
||||||
reservations:
|
reservations:
|
||||||
memory: 16M
|
memory: 50M
|
||||||
|
|
||||||
db:
|
db:
|
||||||
build: db
|
image: dockersamples/k8s-wordsmith-db
|
||||||
image: dockerdemos/lab-db
|
|
||||||
```
|
```
|
||||||
|
|
||||||
If you already have a Kubernetes YAML file, you can deploy it using the
|
If you already have a Kubernetes YAML file, you can deploy it using the
|
||||||
|
|
|
@ -29,19 +29,16 @@ version: '3.3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build: web
|
|
||||||
image: dockersamples/k8s-wordsmith-web
|
image: dockersamples/k8s-wordsmith-web
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
|
|
||||||
words:
|
words:
|
||||||
build: words
|
|
||||||
image: dockersamples/k8s-wordsmith-api
|
image: dockersamples/k8s-wordsmith-api
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 5
|
replicas: 5
|
||||||
|
|
||||||
db:
|
db:
|
||||||
build: db
|
|
||||||
image: dockersamples/k8s-wordsmith-db
|
image: dockersamples/k8s-wordsmith-db
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue