diff --git a/templates/meanshop/0/docker-compose.yml b/templates/meanshop/0/docker-compose.yml new file mode 100644 index 0000000..fb62677 --- /dev/null +++ b/templates/meanshop/0/docker-compose.yml @@ -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 diff --git a/templates/meanshop/0/rancher-compose.yml b/templates/meanshop/0/rancher-compose.yml new file mode 100644 index 0000000..43eb1bf --- /dev/null +++ b/templates/meanshop/0/rancher-compose.yml @@ -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}" diff --git a/templates/meanshop/README.md b/templates/meanshop/README.md new file mode 100644 index 0000000..7891a46 --- /dev/null +++ b/templates/meanshop/README.md @@ -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. diff --git a/templates/meanshop/catalogIcon-meanshop.png b/templates/meanshop/catalogIcon-meanshop.png new file mode 100644 index 0000000..df19cd4 Binary files /dev/null and b/templates/meanshop/catalogIcon-meanshop.png differ diff --git a/templates/meanshop/config.yml b/templates/meanshop/config.yml new file mode 100644 index 0000000..f2b76c1 --- /dev/null +++ b/templates/meanshop/config.yml @@ -0,0 +1,5 @@ +name: Meanshop +description: | + Library service powered by Meanshop +version: 0.4.6 +category: Repository