Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marccampbell/98e25e9ca8e1133fc07174d3f9d2609c to your computer and use it in GitHub Desktop.
Save marccampbell/98e25e9ca8e1133fc07174d3f9d2609c to your computer and use it in GitHub Desktop.
Replicated Getting Started Guide
---
# kind: replicated
replicated_api_version: 2.9.2
name: "Learning Replicated"
#
# https://help.replicated.com/docs/packaging-an-application/application-properties/
#
properties:
app_url: http://{{repl ConfigOption "hostname" }}
console_title: "Learning Replicated"
#
# https://help.replicated.com/docs/kb/supporting-your-customers/install-known-versions/
#
host_requirements:
replicated_version: ">=2.9.2"
#
# Settings screen
# https://help.replicated.com/docs/packaging-an-application/config-screen/
#
config:
- name: hostname
title: Hostname
description: Ensure this domain name is routable on your network.
items:
- name: hostname
title: Hostname
value: '{{repl ConsoleSetting "tls.hostname" }}'
type: text
test_proc:
display_name: Check DNS
command: resolve_host
#
# Define how the application containers will be created and started
# https://help.replicated.com/docs/packaging-an-application/components-and-containers/
#
components:
- name: Stateful Things
containers:
- source: public
image_name: nginx
version: "1.13.9"
ports:
- private_port: 80
public_port: 80
- source: public
image_name: redis
version: "3.2.11"
#
# Documentation for additional features
# https://help.replicated.com/categories/packaging-an-application/
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment