Generate Token through Auth0
This commit is contained in:
6
infra/dev/.env.example
Normal file
6
infra/dev/.env.example
Normal 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
|
||||
@ -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
|
||||
|
||||
10
infra/dev/twenty-front/Dockerfile
Normal file
10
infra/dev/twenty-front/Dockerfile
Normal 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"]
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user