Added meanshop to rancher templates
This commit is contained in:
parent
89ea29a507
commit
320af4f81a
44
templates/meanshop/0/docker-compose.yml
Normal file
44
templates/meanshop/0/docker-compose.yml
Normal 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
|
55
templates/meanshop/0/rancher-compose.yml
Normal file
55
templates/meanshop/0/rancher-compose.yml
Normal 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}"
|
13
templates/meanshop/README.md
Normal file
13
templates/meanshop/README.md
Normal 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.
|
BIN
templates/meanshop/catalogIcon-meanshop.png
Normal file
BIN
templates/meanshop/catalogIcon-meanshop.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 MiB |
5
templates/meanshop/config.yml
Normal file
5
templates/meanshop/config.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
name: Meanshop
|
||||||
|
description: |
|
||||||
|
Library service powered by Meanshop
|
||||||
|
version: 0.4.6
|
||||||
|
category: Repository
|
Loading…
x
Reference in New Issue
Block a user