templatized
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
# [ReactionCommerce](http://reactioncommerce.com/)
|
||||
|
||||
### Docs
|
||||
|
||||
The Reaction Commerce official docs are
|
||||
@@ -10,9 +8,8 @@ This template implements the same method as found
|
||||
|
||||
### MongoDB
|
||||
|
||||
This initial version pulls up its own mongodb just like the official
|
||||
docker-compose.yml, if you have a mongo stack already running try the
|
||||
`1.4.0-rancher2` version
|
||||
You'll need a mongodb stack running, choose it in the external link
|
||||
question below
|
||||
|
||||
### Traefik
|
||||
|
||||
|
||||
+8
-3
@@ -11,12 +11,17 @@ services:
|
||||
traefik.acme: true
|
||||
traefik.port: 3000
|
||||
environment:
|
||||
MONGO_URL: "mongodb://mongo/reaction"
|
||||
MONGO_URL: "mongodb://mongo/${MONGO_DB}"
|
||||
ROOT_URL: "http://${REACTION_HOST}.${REACTION_DOMAIN}"
|
||||
REACTION_EMAIL: ${REACTION_EMAIL}
|
||||
REACTION_USER: ${REACTION_USER}
|
||||
REACTION_AUTH: ${REACTION_AUTH}
|
||||
|
||||
{{- if ne .Values.mongo_link ""}}
|
||||
REACTION_TEST: ${REACTION_AUTH}
|
||||
external_links:
|
||||
- ${mongo_link}:mongo
|
||||
tty: true
|
||||
{{- else}}
|
||||
mongo:
|
||||
command: mongod --storageEngine=wiredTiger
|
||||
restart: always
|
||||
@@ -30,7 +35,7 @@ services:
|
||||
io.rancher.container.hostname_override: container_name
|
||||
volumes:
|
||||
- mongodata:/data/db
|
||||
|
||||
volumes:
|
||||
mongodata:
|
||||
driver: ${VOLUME_DRIVER}
|
||||
{{- end}}
|
||||
@@ -16,7 +16,7 @@ catalog:
|
||||
description: "Domain to use for the reaction server"
|
||||
label: "reaction Domain"
|
||||
required: true
|
||||
default: ""
|
||||
default: "local"
|
||||
type: "string"
|
||||
- variable: host_label
|
||||
label: "Host Label to reaction Tags"
|
||||
@@ -29,7 +29,7 @@ catalog:
|
||||
- variable: REACTION_EMAIL
|
||||
label: "reaction Email"
|
||||
required: true
|
||||
default: ""
|
||||
default: "test@local"
|
||||
type: "string"
|
||||
- variable: REACTION_USER
|
||||
label: "reaction User"
|
||||
@@ -41,17 +41,20 @@ catalog:
|
||||
required: true
|
||||
default: ""
|
||||
type: "password"
|
||||
- variable: "VOLUME_DRIVER"
|
||||
description: "The VOLUME driver to associate with this server"
|
||||
label: "VOLUME Driver"
|
||||
- variable: "mongo_link"
|
||||
description: |
|
||||
MongoDB external service link
|
||||
cluster.
|
||||
label: "External stack/service"
|
||||
default: ""
|
||||
required: false
|
||||
type: "service"
|
||||
- variable: "MONGO_DB"
|
||||
default: "reaction"
|
||||
description: "The mongodb name to associate with this server."
|
||||
label: "mongo_db"
|
||||
required: true
|
||||
default: "local"
|
||||
type: enum
|
||||
options:
|
||||
- local
|
||||
- rancher-nfs
|
||||
- rancher-efs
|
||||
- rancher-ebs
|
||||
type: "string"
|
||||
|
||||
services:
|
||||
reaction:
|
||||
@@ -65,7 +68,6 @@ services:
|
||||
interval: 5000
|
||||
strategy: recreate
|
||||
request_line: GET / # HTTP/1.0
|
||||
|
||||
mongo:
|
||||
scale: 1
|
||||
retain_ip: true
|
||||
|
||||
Reference in New Issue
Block a user