Setup first hasura schema
This commit is contained in:
committed by
Anders Borch
parent
b9d1d80f64
commit
0445c03b51
@ -1,17 +1,39 @@
|
||||
build: ##
|
||||
@docker-compose up --build --force-recreate
|
||||
|
||||
up: ##
|
||||
@docker-compose up -d
|
||||
|
||||
logs: ##
|
||||
@docker-compose logs twenty -f
|
||||
down: ##
|
||||
@docker-compose down
|
||||
|
||||
sh: ##
|
||||
@docker-compose exec twenty sh
|
||||
## Front
|
||||
|
||||
front-logs: ##
|
||||
@docker-compose logs twenty-front -f
|
||||
|
||||
front-sh: ##
|
||||
@docker-compose exec twenty-front sh
|
||||
|
||||
front-test: ##
|
||||
@docker-compose exec twenty sh -c "cd front && npm run test"
|
||||
@docker-compose exec twenty-front sh -c "npm run test"
|
||||
|
||||
front-coverage: ##
|
||||
@docker-compose exec twenty sh -c "cd front && npm run coverage"
|
||||
@docker-compose exec twenty-front sh -c "npm run coverage"
|
||||
|
||||
front-storybook: ##
|
||||
@docker-compose exec twenty sh -c "cd front && npm run storybook"
|
||||
@docker-compose exec twenty-front sh -c "npm run storybook"
|
||||
|
||||
## Hasura
|
||||
|
||||
hasura-logs: ##
|
||||
@docker-compose logs twenty-hasura -f
|
||||
|
||||
hasura-sh: ##
|
||||
@docker-compose exec twenty-hasura sh
|
||||
|
||||
hasura-console: ##
|
||||
@docker-compose exec twenty-hasura bash -c " \
|
||||
socat TCP-LISTEN:9695,fork,reuseaddr,bind=twenty-hasura TCP:127.0.0.1:9695 & \
|
||||
socat TCP-LISTEN:9693,fork,reuseaddr,bind=twenty-hasura TCP:127.0.0.1:9693 & \
|
||||
hasura console --log-level DEBUG --address "127.0.0.1" --no-browser || exit 1"
|
||||
@ -26,7 +26,7 @@ services:
|
||||
environment:
|
||||
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/hasura
|
||||
HASURA_GRAPHQL_PG_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/twenty
|
||||
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
|
||||
HASURA_GRAPHQL_ENABLE_CONSOLE: "false"
|
||||
HASURA_GRAPHQL_DEV_MODE: "true"
|
||||
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
|
||||
twenty-server:
|
||||
|
||||
@ -6,4 +6,6 @@ RUN apt-get install -y socat
|
||||
RUN apt-get install -y vim
|
||||
RUN curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | bash
|
||||
|
||||
WORKDIR /hasura
|
||||
|
||||
CMD ["sh", "-c", "graphql-engine serve"]
|
||||
|
||||
Reference in New Issue
Block a user