Merge pull request #461 from joshuacox/meanshop

Added meanshop to rancher templates
This commit is contained in:
Raúl Sánchez 2017-07-05 12:33:18 +02:00 committed by GitHub
commit c6ad11d59b
5 changed files with 98 additions and 0 deletions

View File

@ -0,0 +1,39 @@
version: '2'
services:
meanshop-nginx:
image: ohmydocker/meanshop:nginx
labels:
io.rancher.container.hostname_override: container_name
io.rancher.container.pull_image: always
ports:
- ${PORT}:80
meanshop-node:
image: ohmydocker/meanshop:alpine
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"
meango:
restart: always
environment:
MONGO_SERVICE_NAME: meango
CATTLE_SCRIPT_DEBUG: ${debug}
tty: true
image: mongo:3.2
labels:
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.container.hostname_override: container_name
io.rancher.container.start_once: true
volumes:
- /data/db
entrypoint: /bin/true
image: busybox

View File

@ -0,0 +1,41 @@
.catalog:
name: "meanshop"
version: "0.4.9"
description: "Ecommerce 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: "8080"
type: "int"
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: |
Ecommerce powered by Meanshop
version: 0.4.9
category: Repository