* feat: add one liner * fix: interactive issue & add support for both linux & mac * feat: move quick start documentation * feat: catch errors * feat: check if directory exists * feat: default to yes for prompt * feat: open in browser * fix: format * feat: do not expose STORAGE_LOCAL_PATH env but handle the case where it would be set * fix: db reset command wasn't working out of the box * Update install.sh Co-authored-by: Darek Desu <4459421+darekdesu@users.noreply.github.com> * feat: harden the whole UX with one-liner * fix: small logical order adjustment * Update packages/twenty-docs/docs/start/self-hosting/docker-compose.mdx --------- Co-authored-by: Darek Desu <4459421+darekdesu@users.noreply.github.com> Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
name: twenty
|
|
|
|
services:
|
|
server:
|
|
image: twentycrm/twenty:${TAG}
|
|
volumes:
|
|
- server-local-data:/app/${STORAGE_LOCAL_PATH:-.local-storage}
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
PORT: 3000
|
|
PG_DATABASE_URL: postgres://twenty:twenty@${PG_DATABASE_HOST}/default
|
|
SERVER_URL: ${SERVER_URL}
|
|
FRONT_BASE_URL: ${FRONT_BASE_URL:-$SERVER_URL}
|
|
|
|
ENABLE_DB_MIGRATIONS: true
|
|
|
|
SIGN_IN_PREFILLED: ${SIGN_IN_PREFILLED}
|
|
STORAGE_TYPE: ${STORAGE_TYPE}
|
|
STORAGE_S3_REGION: ${STORAGE_S3_REGION}
|
|
STORAGE_S3_NAME: ${STORAGE_S3_NAME}
|
|
STORAGE_S3_ENDPOINT: ${STORAGE_S3_ENDPOINT}
|
|
ACCESS_TOKEN_SECRET: ${ACCESS_TOKEN_SECRET}
|
|
LOGIN_TOKEN_SECRET: ${LOGIN_TOKEN_SECRET}
|
|
REFRESH_TOKEN_SECRET: ${REFRESH_TOKEN_SECRET}
|
|
FILE_TOKEN_SECRET: ${FILE_TOKEN_SECRET}
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: curl --fail http://localhost:3000/healthz
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
restart: always
|
|
|
|
db:
|
|
image: twentycrm/twenty-postgres:${TAG}
|
|
volumes:
|
|
- db-data:/bitnami/postgresql
|
|
environment:
|
|
POSTGRES_PASSWORD: ${POSTGRES_ADMIN_PASSWORD}
|
|
healthcheck:
|
|
test: pg_isready -U twenty -d default
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
restart: always
|
|
|
|
volumes:
|
|
db-data:
|
|
server-local-data:
|