Created
November 28, 2015 16:20
-
-
Save dbones/a88c5785ebb7d4219fc2 to your computer and use it in GitHub Desktop.
wordpress with rancher, docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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