Skip to content

Instantly share code, notes, and snippets.

@dbones
Created November 28, 2015 16:20
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 dbones/a88c5785ebb7d4219fc2 to your computer and use it in GitHub Desktop.
Save dbones/a88c5785ebb7d4219fc2 to your computer and use it in GitHub Desktop.
wordpress with rancher, docker
blog-lb:
ports:
- 80:80
labels:
io.rancher.scheduler.affinity:host_label: server=proxy
tty: true
image: rancher/load-balancer-service
links:
- blog:blog
stdin_open: true
blog:
labels:
io.rancher.scheduler.affinity:host_label: server=application
tty: true
image: wordpress
links:
- database:mysql
stdin_open: true
database:
environment:
MYSQL_ROOT_PASSWORD: my-secret-pw
labels:
io.rancher.scheduler.affinity:container_ne: database
io.rancher.scheduler.affinity:host_label: server=stateful
tty: true
image: mysql
stdin_open: true
blog-lb:
scale: 1
load_balancer_config: {}
blog:
scale: 1
database:
scale: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment