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

View File

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