mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-01-15 01:17:57 -05:00
* addin' frontend to render.yaml 🐂 * settin' node version 🐀 * tweakin' build step 🐾 * alt specification of graphql endpoint 🦡 * no interpolation in render.yaml 🌮 * tryin' static specification 🧁 * printin' URI 🖨 * pushin' just to see the value 🚡 * printin' the right value 💅 * debuggin' hasura 🐜 * tryin' to capture port 🚢 * tryin' w/o port 🌅 * redeployin' altered render.yaml 🥦 * resettin' yarn.lock 🔒 * fixin' name preface so it is passed 🏀
80 lines
1.8 KiB
YAML
80 lines
1.8 KiB
YAML
previewsExpireAfterDays: 3 # automatically remove preview instances
|
|
services:
|
|
# A Docker web service
|
|
- type: web
|
|
name: hasura
|
|
env: docker
|
|
healthCheckPath: /healthz
|
|
numInstances: 1
|
|
dockerfilePath: ./hasura/Dockerfile
|
|
dockerContext: ./hasura
|
|
envVars:
|
|
- fromGroup: hasura-secrets
|
|
- key: HASURA_GRAPHQL_DATABASE_URL
|
|
fromDatabase:
|
|
name: metagame-db
|
|
property: connectionString
|
|
- key: BACKEND_HOST
|
|
fromService:
|
|
name: backend
|
|
type: pserv
|
|
property: hostport
|
|
- key: HASURA_GRAPHQL_SERVER_PORT
|
|
value: 10000
|
|
- key: HASURA_GRAPHQL_ENABLE_CONSOLE
|
|
value: true
|
|
- key: PORT
|
|
value: 10000
|
|
|
|
# backend
|
|
- type: pserv
|
|
name: backend
|
|
env: docker
|
|
numInstances: 1
|
|
dockerfilePath: ./docker/backend/Dockerfile
|
|
dockerContext: .
|
|
envVars:
|
|
- fromGroup: hasura-secrets
|
|
- key: IMGIX_TOKEN
|
|
sync: false
|
|
- key: DISCORD_BOT_TOKEN
|
|
sync: false
|
|
- key: GRAPHQL_HOST
|
|
fromService:
|
|
name: hasura
|
|
type: web
|
|
property: host
|
|
|
|
- type: web
|
|
name: mymeta
|
|
env: node
|
|
plan: starter
|
|
buildCommand: yarn && yarn web:build
|
|
startCommand: yarn --cwd packages/web/ start
|
|
envVars:
|
|
- key: NODE_VERSION
|
|
value: 12.18.3
|
|
- key: NEXT_PUBLIC_GRAPHQL_HOST
|
|
fromService:
|
|
name: hasura
|
|
type: web
|
|
property: host
|
|
|
|
databases:
|
|
- name: metagame-db
|
|
plan: starter
|
|
|
|
envVarGroups:
|
|
- name: hasura-secrets
|
|
envVars:
|
|
- key: HASURA_GRAPHQL_ADMIN_SECRET
|
|
generateValue: true
|
|
- name: frontend
|
|
envVars:
|
|
- key: NEXT_PUBLIC_INFURA_ID
|
|
sync: false
|
|
- key: NEXT_PUBLIC_GRAPHQL_URL
|
|
sync: false
|
|
- key: NEXT_TELEMETRY_DISABLED
|
|
value: 1
|