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:
Olly P 2019-06-07 16:04:36 +01:00 committed by Maria Bermudez
parent d82934a2c1
commit c2d80906a1
2 changed files with 5 additions and 13 deletions

View File

@ -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

View File

@ -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
```