Skip to content

Fixed Twenty Template #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 30-01-2025
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions twenty/code/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ TAG=latest
#PG_DATABASE_PASSWORD=replace_me_with_a_strong_password_without_special_characters
#PG_DATABASE_HOST=db
#PG_DATABASE_PORT=5432
#REDIS_URL=redis://redis:6379
REDIS_URL=redis://redis:6379

SERVER_URL=http://localhost:3000
SERVER_URL=https://$(PRIMARY_DOMAIN)
SIGN_IN_PREFILLED=false

# Use openssl rand -base64 32 for each secret
# APP_SECRET=replace_me_with_a_random_string

APP_SECRET=replace_me_with_a_random_string
STORAGE_TYPE=local

# STORAGE_S3_REGION=eu-west3
# STORAGE_S3_NAME=my-bucket
# STORAGE_S3_ENDPOINT=
# STORAGE_S3_ENDPOINT=
11 changes: 7 additions & 4 deletions twenty/code/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ services:
- server-local-data:/tmp/server-local-data
- docker-data:/tmp/docker-data
command: >
bash -c " chown -R 1000:1000 /tmp/server-local-data && chown -R 1000:1000
/tmp/docker-data"
bash -c "
chown -R 1000:1000 /tmp/server-local-data
&& chown -R 1000:1000 /tmp/docker-data"

server:
image: twentycrm/twenty:${TAG:-latest}
volumes:
- server-local-data:/app/packages/twenty-server/${STORAGE_LOCAL_PATH:-.local-storage}
- docker-data:/app/docker-data
ports:
- "3000"
environment:
PORT: 3000
PG_DATABASE_URL: postgres://${PG_DATABASE_USER:-postgres}:${PG_DATABASE_PASSWORD:-postgres}@${PG_DATABASE_HOST:-db}:${PG_DATABASE_PORT:-5432}/default
Expand All @@ -42,7 +45,7 @@ services:

worker:
image: twentycrm/twenty:${TAG:-latest}
command: [ "yarn", "worker:prod" ]
command: ["yarn", "worker:prod"]
environment:
PG_DATABASE_URL: postgres://${PG_DATABASE_USER:-postgres}:${PG_DATABASE_PASSWORD:-postgres}@${PG_DATABASE_HOST:-db}:${PG_DATABASE_PORT:-5432}/default
SERVER_URL: ${SERVER_URL}
Expand Down Expand Up @@ -85,4 +88,4 @@ services:
volumes:
docker-data:
db-data:
server-local-data:
server-local-data: