diff --git a/templates/turtl/0/README.md b/templates/turtl/0/README.md new file mode 100644 index 0000000..c3c9635 --- /dev/null +++ b/templates/turtl/0/README.md @@ -0,0 +1,3 @@ +# Turtl + +Turtl (turtl.it) is a notes sync server written in lisp (for the api server) & nodejs for the clients. It can be used as a conveniant replacement for Evernote. \ No newline at end of file diff --git a/templates/turtl/0/docker-compose.yml b/templates/turtl/0/docker-compose.yml new file mode 100644 index 0000000..c2882bc --- /dev/null +++ b/templates/turtl/0/docker-compose.yml @@ -0,0 +1,34 @@ +turtl-api-data: + labels: + io.rancher.container.start_once: 'true' + entrypoint: + - /bin/true + image: busybox + volumes: + - /opt/api/uploads + - /var/lib/rethinkdb/instance1 + +turtl-api: + ports: + - 8181:8181/tcp + environment: + DISPLAY_ERRORS: ${DISPLAY_ERRORS} + FQDN: ${FQDN} + SITE_URL: ${SITE_URL} + LOCAL_UPLOAD_URL: ${LOCAL_UPLOAD_URL} + LOCAL_UPLOAD_PATH: ${LOCAL_UPLOAD_PATH} + AWS_S3_TOKEN: ${AWS_S3_TOKEN} + ADMIN_EMAIL: ${ADMIN_EMAIL} + EMAIL_FROM: ${EMAIL_FROM} + SMTP_USER: ${SMTP_USER} + SMTP_PASS: ${SMTP_PASS} + DEFAULT_STORAGE_LIMIT: ${DEFAULT_STORAGE_LIMIT} + STORAGE_INVITE_CREDIT: ${STORAGE_INVITE_CREDIT} + image: webofmars/turtl-docker:latest + stdin_open: true + tty: true + labels: + io.rancher.sidekicks: turtl-api-data + volumes_from: + - turtl-api-data + diff --git a/templates/turtl/0/rancher-compose.yml b/templates/turtl/0/rancher-compose.yml new file mode 100644 index 0000000..06e07ed --- /dev/null +++ b/templates/turtl/0/rancher-compose.yml @@ -0,0 +1,108 @@ +.catalog: + name: "turtl" + version: 1.0.1 + description: | + Turtl API for Rancher + minimum_rancher_version: 1.0.0 + questions: + + - variable: "DISPLAY_ERRORS" + descrition: "Display errors" + label: "Display errors: " + required: false + default: "t" + type: "string" + + - variable: "FQDN" + description: "Fully Qualified Domain Name (ex: 'notes.example.com')." + label: "fqdn" + required: true + default: "turtl.local" + type: "string" + + - variable: "SITE_URL" + description: "The uri used to access the turtl api" + label: "site url" + required: true + default: "http://turtl.local" + type: "string" + + - variable: "LOCAL_UPLOAD_PATH" + description: "The local path of the uploaded content." + label: "uploads local path" + required: false + default: "" + type: "string" + + - variable: "LOCAL_UPLOAD_URL" + description: "The urls used to retrieve uploaded content. Must be set if you change LOCAL_UPLOAD_PATH. (ex: http://turtl.local)" + label: "local upload url" + required: false + default: "" + type: "string" + + - variable: "AWS_S3_TOKEN" + description: | + Amazon Web Services S3 token. Used only if you use S3 as a storage backend. ex : (:token '' + secret '' + bucket '' + endpoint 'https://s3.amazonaws.com') + label: "AWS S3 token" + required: false + default: "" + type: "string" + + - variable: "ADMIN_EMAIL" + description: "email adresse of administrator ex: admin@example.com" + label: "Admin e-mail" + required: false + default: "" + type: "string" + + - variable: "EMAIL_FROM" + description: "The e-mail adress used to send the e-mail from turtl to users." + label: "e-mail from" + required: false + default: "" + type: "string" + + - variable: "SMTP_USER" + description: "The user used to authenticate to the smtp server. Can be blank." + label: "smtp user" + required: false + default: "" + type: "string" + + - variable: "SMTP_PASS" + description: "The password used to authenticate to the smtp server. Can be blank." + label: "smtp password" + required: false + default: "" + type: "string" + + - variable: "STORAGE_INVITE_CREDIT" + description: "The number of MB a user gain when he invites someone" + label: "storage invite credit" + required: false + default: "" + type: "int" + + - variable: "DEFAULT_STORAGE_LIMIT" + description: "Maximum storage space (in MB) that can be used by a single user (ex: 1000)" + label: "Default Storage Limit" + required: false + default: "" + type: "int" + +turtl-api-data: + scale: 1 +turtl-api: + scale: 1 + health_check: + port: 8181 + interval: 2000 + initializing_timeout: 300000 + unhealthy_threshold: 10 + strategy: recreate + response_timeout: 2000 + healthy_threshold: 2 diff --git a/templates/turtl/catalogIcon-turtl.png b/templates/turtl/catalogIcon-turtl.png new file mode 100644 index 0000000..4dc6632 Binary files /dev/null and b/templates/turtl/catalogIcon-turtl.png differ diff --git a/templates/turtl/config.yml b/templates/turtl/config.yml new file mode 100644 index 0000000..54dffba --- /dev/null +++ b/templates/turtl/config.yml @@ -0,0 +1,7 @@ +name: turtl +description: | + Turtl is a notes sync server (opensource alternative to Evernote) +version: 1.0.1 +category: Applications +maintainer: "Frederic Leger " +projectURL: https://github.com/webofmars/turtl-docker