Add asciinema-org template (#141)

This commit is contained in:
Lobsiinvok
2016-05-17 00:03:04 +08:00
committed by Bill Maxwell
parent f6e820ac2d
commit 356bb12dc2
5 changed files with 91 additions and 0 deletions
@@ -0,0 +1,39 @@
asciinema-org:
image: 'asciinema/asciinema.org:latest'
links:
- postgres
- redis
restart: always
ports:
- ${port}:3000
environment:
HOST: ${host}:${port}
DATABASE_URL: postgresql://postgres:${postgres_password}@postgres/asciinema
REDIS_URL: redis://redis:6379
RAILS_ENV: development
postgres:
image: 'postgres:latest'
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: ${postgres_password}
container_name: postgres
redis:
image: 'redis:latest'
ports:
- 6379:6379
container_name: redis
sidekiq:
image: 'asciinema/asciinema.org:latest'
links:
- postgres
- redis
command: 'ruby start_sidekiq.rb'
environment:
HOST: ${host}:${port}
DATABASE_URL: postgresql://postgres:${postgres_password}@postgres/asciinema
REDIS_URL: redis://redis:6379
RAILS_ENV: development
@@ -0,0 +1,21 @@
.catalog:
name: "asciinema-org"
version: "0.1-rancher1"
description: "Asciinema is a free and open source solution for recording terminal sessions and sharing them on the web."
minimum_rancher_version: v0.46.0
questions:
- variable: "postgres_password"
label: "POSTGRES PASSWORD"
description: "Your Postgres Password"
required: true
type: "string"
- variable: "host"
label: "Host"
description: "Your Server Host"
required: true
type: "string"
- variable: "port"
label: "Port"
description: "Your Server Port"
required: true
type: "int"