mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-01-14 08:58:02 -05:00
* beginning ESM transition: Ceramic libraries, Next.js, & TypeScript configuration 🇭🇰 * updating Chakra, React, & Next image `import`s 👔 * upgrading `@types/react`, import extensions for Node, & b64 SVG to PNG ⛹🏿♀️ * fixing relative import names & upddating @types packages 📻 * removoing WYSIWYG editor, draft-js, & updating express ⛹🏿♀️ * updating OpenSea 🚲 * ¡@metafam/utils is building! 📰 * ¡Discord bot is building! 👘 * ¡backend is building! 🛩 * fixed everything but Ceramic DID update 🏍 * switching to DID:PKH 📦 * fixing "only one child allowed" error 🙇🏿♀️ * importing `React` as required by tsc's `isolatedModules` 🇲🇰 * disabling testing rather than taking the time to fix jest ⚜ * removing set `types` from `tsconfig` to fix compilation error 🥦 * printing tests disabled warning, hopefully 🙀 * setting file to be copied to the new resolver 👁️🗨️ * "paths-resolver" not "paths-resolve" 🦴 * switching back to relative paths rather than trying to fix `paths` ⏳ * `yarn backend:dev` not working, testing GitHub build 🎺 * removing design system build & fixing some images ✊🏿 * fixed "expected function got string" error & trying to address undefined HTMLElement 🐡 * fixing @emotion/react tree shaking by making external 🏏 * including eslint config in Dockerfile 🌾 * fixing more images 🎯 * updating DIDs & switching back to an updated DID:3 ❇ * switching to w3s.link gateway & fixing early termination of storage endpoint 🔭 * switching back to ipfs.io gateway b/c w3s.link serves SVGs as application/xml which are CORB blocked 🥾 * fixing node config name in eslint ignore & shortening some paths 🧰 * fixing ts-node not handling project references 🥁
66 lines
2.0 KiB
YAML
66 lines
2.0 KiB
YAML
---
|
|
version: '3.6'
|
|
|
|
services:
|
|
hasura:
|
|
build:
|
|
context: ./hasura
|
|
args:
|
|
BACKEND_HOST: ${BACKEND_HOST:-backend:4000}
|
|
AUTH_HOOK_PATH: auth-webhook
|
|
ACTION_BASE_PATH: actions
|
|
REMOTE_SCHEMA_PATH: remote-schemas/graphql
|
|
TRIGGERS_PATH: triggers
|
|
depends_on:
|
|
- database
|
|
ports:
|
|
- ${HASURA_PORT}:8080
|
|
environment:
|
|
WAIT_HOSTS: database:5432, ${BACKEND_HOST:-backend:4000}
|
|
WAIT_TIMEOUT: 60
|
|
HASURA_GRAPHQL_SERVER_PORT: ${HASURA_PORT:-8080}
|
|
HASURA_GRAPHQL_DATABASE_URL: postgres://${DATABASE_USER}:${DATABASE_PASSWORD}@database:5432/${DATABASE_NAME}
|
|
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
|
|
HASURA_GRAPHQL_DEV_MODE: ${HASURA_GRAPHQL_DEV_MODE:-false}
|
|
|
|
database:
|
|
image: postgres:12
|
|
volumes:
|
|
- database:/var/lib/postgresql/data
|
|
ports:
|
|
- 5432:5432
|
|
environment:
|
|
POSTGRES_USER: ${DATABASE_USER}
|
|
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
|
|
POSTGRES_DB: ${DATABASE_NAME}
|
|
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: ./docker/backend/Dockerfile
|
|
target: base
|
|
command: yarn backend:dev
|
|
ports:
|
|
- 4000:4000
|
|
- 4322:4322
|
|
volumes:
|
|
- ./packages/@types:/usr/src/app/packages/@types
|
|
- ./packages/backend:/usr/src/app/packages/backend
|
|
- ./packages/utils:/usr/src/app/packages/utils
|
|
- ./packages/discord-bot:/usr/src/app/packages/discord-bot
|
|
- ./package.json:/usr/src/app/package.json
|
|
- ./tsconfig.base.json:/usr/src/app/tsconfig.base.json
|
|
- ./schema.graphql:/usr/src/app/schema.graphql
|
|
- ./yarn.lock:/usr/src/app/yarn.lock
|
|
environment:
|
|
PORT: 4000
|
|
GRAPHQL_URL: http://hasura:8080/v1/graphql
|
|
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
|
|
IMGIX_TOKEN: ${IMGIX_TOKEN}
|
|
GITHUB_API_TOKEN: ${GITHUB_API_TOKEN}
|
|
DISCORD_BOT_TOKEN: ${DISCORD_BOT_TOKEN}
|
|
DISCORD_BOT_CLIENT_SECRET: ${DISCORD_BOT_CLIENT_SECRET}
|
|
|
|
volumes:
|
|
database:
|