Cannot access Twenty
I setup a standalone local server using an old Mac mini with ubuntu.
So I installed everything using Docker method.
Here is my .env:
And my compose.yaml;
Note that I updated twenty-front part with
So I installed everything using Docker method.
Here is my .env:
TAG=latest
PG_DATABASE_URL=postgres://twenty:twenty@twenty-db:5432/default
FRONT_BASE_URL=http://localhost:3001
LOCAL_SERVER_URL=http://localhost:3000
ACCESS_TOKEN_SECRET=PWD1
LOGIN_TOKEN_SECRET=PWD2
REFRESH_TOKEN_SECRET=PWD3
FILE_TOKEN_SECRET=PWD4
SIGN_IN_PREFILLED=false
POSTGRES_ADMIN_PASSWORD=PWD5
POSTGRES_USER=postgres
POSTGRES_PASSWORD=twenty
SERVER_URL=https://sgl.localTAG=latest
PG_DATABASE_URL=postgres://twenty:twenty@twenty-db:5432/default
FRONT_BASE_URL=http://localhost:3001
LOCAL_SERVER_URL=http://localhost:3000
ACCESS_TOKEN_SECRET=PWD1
LOGIN_TOKEN_SECRET=PWD2
REFRESH_TOKEN_SECRET=PWD3
FILE_TOKEN_SECRET=PWD4
SIGN_IN_PREFILLED=false
POSTGRES_ADMIN_PASSWORD=PWD5
POSTGRES_USER=postgres
POSTGRES_PASSWORD=twenty
SERVER_URL=https://sgl.localAnd my compose.yaml;
version: "3.9"
services:
twenty-front:
image: twentycrm/twenty-front:${TAG}
ports:
- 3001:3001
environment:
- SIGN_IN_PREFILLED=${SIGN_IN_PREFILLED}
- REACT_APP_SERVER_BASE_URL=${LOCAL_SERVER_URL}
- REACT_APP_SERVER_AUTH_URL=${LOCAL_SERVER_URL}/auth
- REACT_APP_SERVER_FILES_URL=${LOCAL_SERVER_URL}/files
depends_on:
- twenty-back
twenty-back:
image: twentycrm/twenty-server:${TAG}
ports:
- 3000:3000
environment:
- SIGN_IN_PREFILLED=${SIGN_IN_PREFILLED}
- PG_DATABASE_URL=${PG_DATABASE_URL}
- FRONT_BASE_URL=${FRONT_BASE_URL}
- PORT=3000
- STORAGE_TYPE=local
- STORAGE_LOCAL_PATH=.local-storage
- ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET}
- LOGIN_TOKEN_SECRET=${LOGIN_TOKEN_SECRET}
- REFRESH_TOKEN_SECRET=${REFRESH_TOKEN_SECRET}
#- SERVER_URL=${SERVER_URL}
depends_on:
- twenty-db
twenty-db:
image: twentycrm/twenty-postgres:${TAG}
volumes:
- twenty-db-data:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
- POSTGRESQL_USER=${POSTGRES_USER}
- POSTGRESQL_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRESQL_DB=default
volumes:
twenty-db-data:version: "3.9"
services:
twenty-front:
image: twentycrm/twenty-front:${TAG}
ports:
- 3001:3001
environment:
- SIGN_IN_PREFILLED=${SIGN_IN_PREFILLED}
- REACT_APP_SERVER_BASE_URL=${LOCAL_SERVER_URL}
- REACT_APP_SERVER_AUTH_URL=${LOCAL_SERVER_URL}/auth
- REACT_APP_SERVER_FILES_URL=${LOCAL_SERVER_URL}/files
depends_on:
- twenty-back
twenty-back:
image: twentycrm/twenty-server:${TAG}
ports:
- 3000:3000
environment:
- SIGN_IN_PREFILLED=${SIGN_IN_PREFILLED}
- PG_DATABASE_URL=${PG_DATABASE_URL}
- FRONT_BASE_URL=${FRONT_BASE_URL}
- PORT=3000
- STORAGE_TYPE=local
- STORAGE_LOCAL_PATH=.local-storage
- ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET}
- LOGIN_TOKEN_SECRET=${LOGIN_TOKEN_SECRET}
- REFRESH_TOKEN_SECRET=${REFRESH_TOKEN_SECRET}
#- SERVER_URL=${SERVER_URL}
depends_on:
- twenty-db
twenty-db:
image: twentycrm/twenty-postgres:${TAG}
volumes:
- twenty-db-data:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
- POSTGRESQL_USER=${POSTGRES_USER}
- POSTGRESQL_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRESQL_DB=default
volumes:
twenty-db-data:Note that I updated twenty-front part with
ports: 3001:3001ports: 3001:3001 instead of 3001:3000.