Added meanshop to rancher templates

This commit is contained in:
Josh Cox
2017-03-22 09:55:42 -05:00
parent 89ea29a507
commit 320af4f81a
5 changed files with 117 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
version: '2'
services:
meanshop-nginx:
image: thalhalla/meanshop:nginx
labels:
io.rancher.scheduler.affinity:host_label: ${host_label}
io.rancher.container.hostname_override: container_name
io.rancher.container.pull_image: always
ports:
- ${PORT}:80
meanshop-node:
image: thalhalla/meanshop:node
labels:
io.rancher.scheduler.affinity:host_label: ${host_label}
io.rancher.container.pull_image: always
environment:
MEANGO_DEBUG: ${debug}
PORT: 9000
MONGODB_DB_URL: "mongodb://meango/meanshop"
ports:
- "9000:9000"
meango:
restart: always
environment:
MONGO_SERVICE_NAME: meango
CATTLE_SCRIPT_DEBUG: ${debug}
tty: true
image: mongo:3.2
labels:
io.rancher.scheduler.affinity:host_label: ${host_label}
io.rancher.container.hostname_override: container_name
io.rancher.sidekicks: meango-datavolume
io.rancher.container.pull_image: always
volumes_from:
- meango-datavolume
meango-datavolume:
labels:
io.rancher.scheduler.affinity:host_label: ${host_label}
io.rancher.container.hostname_override: container_name
io.rancher.container.start_once: true
volumes:
- /data/db
entrypoint: /bin/true
image: busybox