New catalog item for Iron Functions, a serverless platform for Docker
This commit is contained in:
parent
052ed326bf
commit
39e3d9abf3
75
templates/iron-functions/0/docker-compose.yml
Normal file
75
templates/iron-functions/0/docker-compose.yml
Normal file
@ -0,0 +1,75 @@
|
||||
version: '2'
|
||||
services:
|
||||
functions-ui:
|
||||
image: iron/functions-ui
|
||||
environment:
|
||||
API_URL: http://api:8080
|
||||
stdin_open: true
|
||||
tty: true
|
||||
links:
|
||||
- api-lb:api
|
||||
labels:
|
||||
io.rancher.container.pull_image: always
|
||||
api-lb:
|
||||
image: rancher/lb-service-haproxy:v0.6.2
|
||||
ports:
|
||||
- 8080:8080/tcp
|
||||
- 4000:4000/tcp
|
||||
labels:
|
||||
io.rancher.container.agent.role: environmentAdmin
|
||||
io.rancher.container.create_agent: 'true'
|
||||
setup-dbuser:
|
||||
image: wjimenez5271/postgres_client
|
||||
environment:
|
||||
PGPASSWORD: ironfunctions
|
||||
PGUSER: postgres
|
||||
PGHOST: postgres
|
||||
PGQUERY: GRANT ALL PRIVILEGES ON DATABASE funcs TO postgres;
|
||||
SLEEP_BEFORE_EXEC: '5'
|
||||
stdin_open: true
|
||||
tty: true
|
||||
labels:
|
||||
io.rancher.container.pull_image: always
|
||||
io.rancher.container.start_once: 'true'
|
||||
functions-worker:
|
||||
image: iron/functions
|
||||
environment:
|
||||
MQ_URL: redis://redis:6379/
|
||||
DB_URL: postgres://postgres:ironfunctions@postgres/funcs?sslmode=disable
|
||||
stdin_open: true
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /opt/ironfunc/:/app/data
|
||||
tty: true
|
||||
links:
|
||||
- postgres:postgres
|
||||
- redis:redis
|
||||
labels:
|
||||
io.rancher.container.pull_image: always
|
||||
setup-db:
|
||||
image: wjimenez5271/postgres_client
|
||||
environment:
|
||||
PGPASSWORD: ironfunctions
|
||||
PGUSER: postgres
|
||||
PGHOST: postgres
|
||||
PGQUERY: CREATE DATABASE funcs;
|
||||
stdin_open: true
|
||||
tty: true
|
||||
labels:
|
||||
io.rancher.container.pull_image: always
|
||||
io.rancher.container.start_once: 'true'
|
||||
postgres:
|
||||
image: postgres
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ironfunctions
|
||||
stdin_open: true
|
||||
tty: true
|
||||
labels:
|
||||
io.rancher.container.pull_image: always
|
||||
io.rancher.sidekicks: setup-db,setup-dbuser
|
||||
redis:
|
||||
image: redis
|
||||
stdin_open: true
|
||||
tty: true
|
||||
labels:
|
||||
io.rancher.container.pull_image: always
|
52
templates/iron-functions/0/rancher-compose.yml
Normal file
52
templates/iron-functions/0/rancher-compose.yml
Normal file
@ -0,0 +1,52 @@
|
||||
.catalog:
|
||||
name: "IronFunctions"
|
||||
version: "v0.0.1"
|
||||
description: "Serverless platform using Docker"
|
||||
uuid: ironfunc-0
|
||||
minimum_rancher_version: v1.5.0
|
||||
|
||||
|
||||
version: '2'
|
||||
services:
|
||||
functions-ui:
|
||||
scale: 1
|
||||
start_on_create: true
|
||||
api-lb:
|
||||
scale: 1
|
||||
start_on_create: true
|
||||
lb_config:
|
||||
certs: []
|
||||
port_rules:
|
||||
- priority: 1
|
||||
protocol: tcp
|
||||
service: functions-worker
|
||||
source_port: 8080
|
||||
target_port: 8080
|
||||
- path: ''
|
||||
priority: 2
|
||||
protocol: tcp
|
||||
service: functions-ui
|
||||
source_port: 4000
|
||||
target_port: 4000
|
||||
health_check:
|
||||
healthy_threshold: 2
|
||||
response_timeout: 2000
|
||||
port: 42
|
||||
unhealthy_threshold: 3
|
||||
interval: 2000
|
||||
strategy: recreate
|
||||
setup-dbuser:
|
||||
scale: 1
|
||||
start_on_create: true
|
||||
functions-worker:
|
||||
scale: 1
|
||||
start_on_create: true
|
||||
setup-db:
|
||||
scale: 1
|
||||
start_on_create: true
|
||||
postgres:
|
||||
scale: 1
|
||||
start_on_create: true
|
||||
redis:
|
||||
scale: 1
|
||||
start_on_create: true
|
5
templates/iron-functions/config.yml
Normal file
5
templates/iron-functions/config.yml
Normal file
@ -0,0 +1,5 @@
|
||||
name: IronFunctions
|
||||
description: |
|
||||
Serverless platform using Docker
|
||||
version: v0.0.1
|
||||
category: Platform
|
Loading…
x
Reference in New Issue
Block a user