Generate Token through Auth0

This commit is contained in:
Charles Bochet
2023-01-27 12:12:04 +01:00
parent 54acb16db8
commit 8e0dc44bf6
21 changed files with 3616 additions and 2344 deletions

6
infra/dev/.env.example Normal file
View File

@ -0,0 +1,6 @@
HASURA_GRAPHQL_JWT_SECRET=REPLACE_ME
HASURA_GRAPHQL_ADMIN_SECRET=hasura_secret
REACT_APP_AUTH0_DOMAIN=twenty-dev.eu.auth0.com
REACT_APP_AUTH0_CLIENT_ID=REPLACE_ME
REACT_APP_AUTH0_CALLBACK_URL=http://localhost:3001/auth/callback
REACT_APP_AUTH0_AUDIENCE=hasura-dev

View File

@ -1,5 +1,17 @@
version: "3.9"
services:
twenty-front:
build:
context: ../..
dockerfile: ./infra/dev/twenty-front/Dockerfile
ports:
- "3001:3001"
- "6006:6006"
volumes:
- ../../front:/app/front
- ../../infra:/app/infra
depends_on:
- postgres
twenty-server:
build:
context: ../..
@ -20,6 +32,8 @@ services:
PG_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/twenty
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_DEV_MODE: "true"
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
HASURA_GRAPHQL_JWT_SECRET: ${HASURA_GRAPHQL_JWT_SECRET}
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
postgres:
build: ./postgres

View File

@ -0,0 +1,10 @@
FROM node:18-alpine as app
WORKDIR /app
COPY ../.. .
WORKDIR /app/front
RUN npm install
RUN npm run build
CMD ["npm", "run", "start"]

View File

@ -3,10 +3,6 @@ FROM node:18-alpine as app
WORKDIR /app
COPY ../.. .
WORKDIR /app/front
RUN npm install
RUN npm run build
WORKDIR /app/server
RUN npm install
RUN npm run build