2024-03-22 11:16:39 +03:00
|
|
|
name: twenty
|
|
|
|
|
|
|
|
services:
|
|
|
|
server:
|
|
|
|
image: twentycrm/twenty:${TAG}
|
|
|
|
volumes:
|
2024-03-27 23:28:03 +03:00
|
|
|
- server-local-data:/app/${STORAGE_LOCAL_PATH:-.local-storage}
|
2024-03-22 11:16:39 +03:00
|
|
|
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}
|
2024-03-27 23:28:03 +03:00
|
|
|
STORAGE_TYPE: ${STORAGE_TYPE}
|
|
|
|
STORAGE_S3_REGION: ${STORAGE_S3_REGION}
|
|
|
|
STORAGE_S3_NAME: ${STORAGE_S3_NAME}
|
|
|
|
STORAGE_S3_ENDPOINT: ${STORAGE_S3_ENDPOINT}
|
2024-03-22 11:16:39 +03:00
|
|
|
ACCESS_TOKEN_SECRET: ${ACCESS_TOKEN_SECRET}
|
|
|
|
LOGIN_TOKEN_SECRET: ${LOGIN_TOKEN_SECRET}
|
|
|
|
REFRESH_TOKEN_SECRET: ${REFRESH_TOKEN_SECRET}
|
2024-03-26 15:42:09 +03:00
|
|
|
FILE_TOKEN_SECRET: ${FILE_TOKEN_SECRET}
|
2024-03-22 11:16:39 +03:00
|
|
|
depends_on:
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
|
|
|
healthcheck:
|
2024-03-27 23:28:03 +03:00
|
|
|
test: curl --fail http://localhost:3000/healthz
|
2024-03-22 11:16:39 +03:00
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 10
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: twentycrm/twenty-postgres:${TAG}
|
|
|
|
volumes:
|
2024-03-27 10:47:58 +03:00
|
|
|
- db-data:/bitnami/postgresql
|
2024-03-22 11:16:39 +03:00
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: ${POSTGRES_ADMIN_PASSWORD}
|
|
|
|
healthcheck:
|
2024-03-27 23:28:03 +03:00
|
|
|
test: pg_isready -U twenty -d default
|
2024-03-22 11:16:39 +03:00
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 10
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db-data:
|
|
|
|
server-local-data:
|