TofuStack/render.yaml

102 lines
2.6 KiB
YAML
Raw Normal View History

2024-06-26 21:57:52 +00:00
services:
2024-09-01 21:32:50 +00:00
# Web
2024-06-26 21:57:52 +00:00
- type: web
name: web
runtime: node
region: oregon # optional (defaults to oregon)
plan: starter # optional (defaults to starter instance type)
branch: main # optional (defaults to master)
buildCommand: npm install --force && npm run build
startCommand: npm run db:migrate && node build/index.js
healthCheckPath: /
envVars:
2024-09-01 21:32:50 +00:00
- key: STORAGE_API_SECRET_KEY
fromService:
name: minio-server
type: web
property: MINIO_ROOT_PASSWORD
- key: STORAGE_ACCESS_KEY
fromService:
name: minio-server
type: web
property: MINIO_ROOT_USER
- key: STORAGE_API_URL
fromService:
name: minio-server
type: web
property: connectionString
2024-06-26 21:57:52 +00:00
- key: DATABASE_URL
fromDatabase:
2024-08-31 17:54:31 +00:00
name: tofustack
2024-06-26 22:03:54 +00:00
property: connectionString
- key: REDIS_URL
2024-06-26 22:20:34 +00:00
fromService:
2024-06-26 22:03:54 +00:00
name: redis
2024-06-26 22:20:34 +00:00
type: redis
2024-06-26 21:57:52 +00:00
property: connectionString
- key: PUBLIC_ORIGIN
2024-06-26 22:20:34 +00:00
fromService:
2024-06-26 21:57:52 +00:00
name: web
2024-06-26 22:20:34 +00:00
type: web
2024-06-26 21:57:52 +00:00
property: host
2024-09-01 21:32:50 +00:00
# Redis
2024-06-26 21:57:52 +00:00
- type: redis
2024-06-26 21:58:14 +00:00
name: redis
2024-06-26 21:57:52 +00:00
ipAllowList: [] # Only allow internal connections
2024-09-01 21:32:50 +00:00
# MinIO Server
- type: web
name: minio-server
healthCheckPath: /minio/health/liveweb
runtime: image
image:
url: docker.io/minio/minio:latest
dockerCommand: minio server /data --address $HOST:$PORT --console-address $HOST:$CONSOLE_PORT
# Use the following 'dockerCommand' if removing the 'minio-console'
# web service
# dockerCommand: minio server /data --address $HOST:$PORT
autoDeploy: false
disk:
name: data
mountPath: /data
envVars:
- key: MINIO_ROOT_USER
generateValue: true
- key: MINIO_ROOT_PASSWORD
generateValue: true
- key: HOST
value: "0.0.0.0"
- key: PORT
value: 9000
- key: CONSOLE_PORT
value: 9090
# Uncomment the following key/value pair if you are removing the
# 'minio-console' web service
# - key: MINIO_BROWSER
# value: "off"
# MinIO Console
- type: web
name: minio-console
runtime: docker
dockerContext: /
dockerfilePath: ./Dockerfile.minio
autoDeploy: false
envVars:
- key: PORT
value: 10000
- key: MINIO_HOST
fromService:
name: minio-server
type: web
property: host
- key: MINIO_CONSOLE_PORT
fromService:
name: minio-server
type: web
envVarKey: CONSOLE_PORT
2024-06-26 21:57:52 +00:00
databases:
2024-06-26 22:03:54 +00:00
- name: db
2024-08-31 17:54:31 +00:00
databaseName: tofustack
2024-06-26 21:57:52 +00:00
ipAllowList: []