Skip to content
This repository has been archived by the owner on Oct 21, 2021. It is now read-only.
/ hasura Public archive

๐Ÿ“š WeebSearch's reusable Hasura schema and configuration

Notifications You must be signed in to change notification settings

WeebSearch/hasura

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Hasura Database

The weebsearch stack is split into isolated, modular containers where most separate services rely on a common database. This repo allows services to be built and developed separate from a monolithic codebase by providing a reusable Hasura container that has an up-to-date schema and other useful tools.

Usage

  1. Spin up a docker-compose.yaml file
services:
  postgres:
    container_name: postgres
    image: postgres
    environment:
      POSTGRES_DB: ws_username
      POSTGRES_USER: ws_password
      POSTGRES_PASSWORD: ws_database
  hasura:
    container_name: hasura
    image: weebsearch/hasura
    ports:
      - "8080:8080"
    environment:
      HASURA_GRAPHQL_DATABASE_URL: postgres://ws_username:ws_password@postgres/ws_database
      HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
  1. docker-compose up

Todo

  • Python database backup and restoration scripts for production

  • Small amount of sample data

About

๐Ÿ“š WeebSearch's reusable Hasura schema and configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published