update twenty
This commit is contained in:
@@ -1,18 +1,16 @@
|
|||||||
TAG=latest
|
TAG=latest
|
||||||
|
|
||||||
POSTGRES_ADMIN_PASSWORD=replace_me_with_a_strong_password
|
# POSTGRES_ADMIN_PASSWORD=replace_me_with_a_strong_password
|
||||||
|
|
||||||
PG_DATABASE_HOST=db:5432
|
PG_DATABASE_HOST=db:5432
|
||||||
|
|
||||||
SERVER_URL=http://localhost:3000
|
SERVER_URL=http://localhost:3000
|
||||||
# Uncoment if you are serving your front on another server than the API (eg. bucket)
|
|
||||||
# FRONT_BASE_URL=http://localhost:3000
|
|
||||||
|
|
||||||
# Use openssl rand -base64 32 for each secret
|
# Use openssl rand -base64 32 for each secret
|
||||||
ACCESS_TOKEN_SECRET=replace_me_with_a_random_string_access
|
# ACCESS_TOKEN_SECRET=replace_me_with_a_random_string_access
|
||||||
LOGIN_TOKEN_SECRET=replace_me_with_a_random_string_login
|
# LOGIN_TOKEN_SECRET=replace_me_with_a_random_string_login
|
||||||
REFRESH_TOKEN_SECRET=replace_me_with_a_random_string_refresh
|
# REFRESH_TOKEN_SECRET=replace_me_with_a_random_string_refresh
|
||||||
FILE_TOKEN_SECRET=replace_me_with_a_random_string_refresh
|
# FILE_TOKEN_SECRET=replace_me_with_a_random_string_refresh
|
||||||
|
|
||||||
SIGN_IN_PREFILLED=true
|
SIGN_IN_PREFILLED=true
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- server-local-data:/app/packages/twenty-server/${STORAGE_LOCAL_PATH:-.local-storage}
|
- server-local-data:/app/packages/twenty-server/${STORAGE_LOCAL_PATH:-.local-storage}
|
||||||
- docker-data:/app/docker-data
|
- docker-data:/app/docker-data
|
||||||
|
# ports:
|
||||||
|
# - "3000:3000"
|
||||||
environment:
|
environment:
|
||||||
PORT: 3000
|
PORT: 3000
|
||||||
PG_DATABASE_URL: postgres://twenty:twenty@${PG_DATABASE_HOST}/default
|
PG_DATABASE_URL: postgres://twenty:twenty@${PG_DATABASE_HOST}/default
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ FROM node:18.17.1-alpine as twenty
|
|||||||
# Used to run healthcheck in docker
|
# Used to run healthcheck in docker
|
||||||
RUN apk add --no-cache curl jq
|
RUN apk add --no-cache curl jq
|
||||||
|
|
||||||
|
RUN npm install -g tsx
|
||||||
|
|
||||||
COPY ./packages/twenty-docker/twenty/entrypoint.sh /app/entrypoint.sh
|
COPY ./packages/twenty-docker/twenty/entrypoint.sh /app/entrypoint.sh
|
||||||
RUN chmod +x /app/entrypoint.sh
|
RUN chmod +x /app/entrypoint.sh
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ if [ "${ENABLE_DB_MIGRATIONS}" = "true" ] && [ ! -f /app/docker-data/db_status ]
|
|||||||
echo "Running database setup and migrations..."
|
echo "Running database setup and migrations..."
|
||||||
|
|
||||||
# Run setup and migration scripts
|
# Run setup and migration scripts
|
||||||
NODE_OPTIONS="--max-old-space-size=1500" npx ts-node ./scripts/setup-db.ts
|
NODE_OPTIONS="--max-old-space-size=1500" tsx ./scripts/setup-db.ts
|
||||||
yarn database:migrate:prod
|
yarn database:migrate:prod
|
||||||
|
|
||||||
# Mark initialization as done
|
# Mark initialization as done
|
||||||
|
|||||||
Reference in New Issue
Block a user