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

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

View File

@ -0,0 +1,55 @@
.catalog:
name: "meanshop"
version: "0.4.6"
description: "Library service powered by Meanshop"
uuid: meanshop-0
minimum_rancher_version: v0.51.0
questions:
- variable: "MEANSHOP_HOST"
description: "Hostname to use for the MEANSHOP server"
label: "MEANSHOP Hostname"
required: true
default: "meanshop"
type: "string"
- variable: "MEANSHOP_DOMAIN"
description: "Domain to use for the MEANSHOP server"
label: "MEANSHOP Domain"
required: true
default: "example.com"
type: "string"
- variable: "PORT"
description: "Port to use for the MEANSHOP server"
label: "MEANSHOP Port"
required: true
default: "3547"
type: "int"
- variable: replset_name
description: "Name of the MongoDB replicaSet"
label: "ReplicaSet Name"
type: "string"
required: true
default: "rs0"
- variable: host_label
label: "Host Label to Meanshop Tags"
description: |
Host label to use as Meanshop 'value' tag.
Example: 'meanshop=true'
required: false
default: "meanshop=true"
type: "string"
meanshop-nginx:
scale: 1
retain_ip: true
meanshop-node:
scale: 1
retain_ip: true
meango:
scale: 1
retain_ip: true
metadata:
mongo:
yml:
replset.name: "${replset_name}"

View File

@ -0,0 +1,13 @@
#[MeanShop](http://meanshop.com/)
Is a project by [Adrian Mejia](http://adrianmejia.com/)
which he describes as an:
"E-commerce Application built with the MEAN stack".
Visit it's [github page here.](https://github.com/amejiarosario/meanshop/)
Where Adrian maintains a set of links where you can purchase his book.
This is a rancher template that should enable you to quickly test it on
your rancher setup.
There are experimental versions of this template in this catalog [here](https://github.com/ohmydocker/ohmydocker-catalog) which implement
other setups. Issues, PRs, etc are welcome there.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

View File

@ -0,0 +1,5 @@
name: Meanshop
description: |
Library service powered by Meanshop
version: 0.4.6
category: Repository