Skip to content

Instantly share code, notes, and snippets.

@russmckendrick
Created January 6, 2018 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save russmckendrick/bc16ba1af9247f6cb8db8bc6e35a98bb to your computer and use it in GitHub Desktop.
Save russmckendrick/bc16ba1af9247f6cb8db8bc6e35a98bb to your computer and use it in GitHub Desktop.
Docker + Kubernetes demo app
version: '3.3'
services:
web:
build: web
image: dockerdemos/lab-web
volumes:
- "./web/static:/static"
ports:
- "80:80"
words:
build: words
image: dockerdemos/lab-words
deploy:
replicas: 5
endpoint_mode: dnsrr
resources:
limits:
memory: 16M
reservations:
memory: 16M
db:
build: db
image: dockerdemos/lab-db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment