mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 22:09:12 +02:00
* dev: new license activation workflow for one and pro users (#739) * feat: added feature flag package for decrypting and refreshing the feature flags value * feat: added feature flagging route for route handlers * feat: added feature flag worker for managing and distributing feature flags * feat: implemented feature flag api implementation inside ff handler * feat: added exponential retry interval inside feature flagging * fix: route pattern of feature flag endpoint from monitor * feat: created endpoint to activate workspace from monitor * feat: made changes to accomodate db and activate endpoint * dev: update multi tenant environment settings * dev: workspace license activation flow * dev: update license activate endpoint * dev: update workspace license activate endpoint * feat: added feature flag user sync logic * feat: added constants and sync logic with private key inside * feat: added port as env variable * feat: added modification for removing license key in healthcheck * feat: example env pushed * fix: update monitor endpoints and license activation function * dev: initiate free workspace only for self hosted instances * dev: self hosting license endpoint updates * dev: remove monitor db * dev: update handlers * dev: self hosted license subscription web * dev: removed computed in self hosted subscription * fix: prime server url and delete old license while creating new license in sqlite * chore: subscription activation alert after successfull activation. * dev: update feature flag endpoints * fix: handled several cases of feature flags * fix: linting errors * dev: update monitor to handle workspace activation * dev: update decryption algorithm * feat: separated activation payload with the sync payload * dev: update feature flags endpoint * dev: change type for workspace sync * feat: added isActive flag for user activation * feat: removed creation of free users in monitor * feat: added method for workspace product * dev: add user email in types * feat: added method for workspace product * fix: uer license feature flag fetch * fix: handler fixed for feature key * chore: self managed license activation * chore: update validation license flow. * chore: license activation success. * dev: resync workspace license on activation * chore: plane one success modal. * feat: added constructs to inject private key build time * feat: updated the docker file with private key build argument * feat: added consumption od DEFAULT_PRIVATE_KEY when building monitor * dev: update private key --------- Co-authored-by: Henit Chobisa <chobisa.henit@gmail.com> Co-authored-by: gurusainath <gurusainath007@gmail.com> Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com> Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com> * fix: prime workflow fix for private key generation * dev: remove license check and update release notes * fix: build args for build ci (#916) * fix: GitHub ci build for monitor (#919) * fix: errors in github ci * fix: added base 64 private key * fix: instance register script * fixed monitor for CGO startup failure (#923) * chore: current plan api and server base urls * fix: monitor startup failure --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com> * fix: monitor feature flagging (#926) * feat: added startup flag handler inside monitor (#927) * feat: added logs for debugging (#929) * fix: parsing of private key with base64 (#932) * fix: private key parsing for monitor (#934) * fix: throw error if private key is not parsable * fix: printing private key * fix: added print of private key in handler * feat: optimized build for monitor * feat: removed debug statements * feat: added volume for compose * fix: monitor build issues (#935) * fix: success modal fix for self hosted users. (#928) * feat: Added refresh worker job inside monitor for refreshing licenses (#937) * dev: add instance validation endpoints * feat: added startup refresh handler for getting new licenses * feat: updated title --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com> * chore: clear workspace license on restart (#939) * fix: product check endpoint for license creation (#941) * feat: added constraints for db models in monitor (#946) * feat: added constraints for db models in monitor * feat: updated constraints * fix: model constraint for db (#948) * fix: one users need to be active for sync (#950) * fix: one users need to be active for sync * fix: added isolation for files for handlers * fix: workspace offline activation for syncing users * fix: update license over syncing in monitor (#954) --------- Co-authored-by: Henit Chobisa <chobisa.henit@gmail.com> Co-authored-by: gurusainath <gurusainath007@gmail.com> Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com> Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com> Co-authored-by: pushya22 <130810100+pushya22@users.noreply.github.com>
170 lines
5.0 KiB
YAML
170 lines
5.0 KiB
YAML
# version: "3.8"
|
|
|
|
x-app-env: &app-env
|
|
environment:
|
|
- LISTEN_HTTP_PORT=${LISTEN_HTTP_PORT:-80}
|
|
- WEB_URL=${WEB_URL:-http://localhost}
|
|
- DEBUG=${DEBUG:-0}
|
|
- SENTRY_DSN=${SENTRY_DSN:-""}
|
|
- SENTRY_ENVIRONMENT=${SENTRY_ENVIRONMENT:-"production"}
|
|
- CORS_ALLOWED_ORIGINS=${CORS_ALLOWED_ORIGINS:-}
|
|
# Gunicorn Workers
|
|
- GUNICORN_WORKERS=${GUNICORN_WORKERS:-2}
|
|
#DB SETTINGS
|
|
- PGHOST=${PGHOST:-plane-db}
|
|
- PGDATABASE=${PGDATABASE:-plane}
|
|
- POSTGRES_USER=${POSTGRES_USER:-plane}
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-plane}
|
|
- POSTGRES_DB=${POSTGRES_DB:-plane}
|
|
- PGDATA=${PGDATA:-/var/lib/postgresql/data}
|
|
- DATABASE_URL=${DATABASE_URL:-postgresql://plane:plane@plane-db/plane}
|
|
# REDIS SETTINGS
|
|
- REDIS_HOST=${REDIS_HOST:-plane-redis}
|
|
- REDIS_PORT=${REDIS_PORT:-6379}
|
|
- REDIS_URL=${REDIS_URL:-redis://plane-redis:6379/}
|
|
# Application secret
|
|
- SECRET_KEY=${SECRET_KEY:-60gp0byfz2dvffa45cxl20p1scy9xbpf6d8c5y0geejgkyp1b5}
|
|
# DATA STORE SETTINGS
|
|
- USE_MINIO=${USE_MINIO:-1}
|
|
- AWS_REGION=${AWS_REGION:-""}
|
|
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:-"access-key"}
|
|
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:-"secret-key"}
|
|
- AWS_S3_ENDPOINT_URL=${AWS_S3_ENDPOINT_URL:-http://plane-minio:9000}
|
|
- AWS_S3_BUCKET_NAME=${AWS_S3_BUCKET_NAME:-uploads}
|
|
- MINIO_ROOT_USER=${MINIO_ROOT_USER:-"access-key"}
|
|
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD:-"secret-key"}
|
|
- BUCKET_NAME=${BUCKET_NAME:-uploads}
|
|
- FILE_SIZE_LIMIT=${FILE_SIZE_LIMIT:-5242880}
|
|
- SSL_VERIFY=${SSL_VERIFY:-1}
|
|
- FEATURE_FLAG_SERVER_BASE_URL=${FEATURE_FLAG_SERVER_BASE_URL:-http://monitor:8080}
|
|
- PAYMENT_SERVER_BASE_URL=${PAYMENT_SERVER_BASE_URL:-http://monitor:8080}
|
|
|
|
services:
|
|
admin:
|
|
<<: *app-env
|
|
image: registry.plane.tools/plane/admin-enterprise:${APP_RELEASE_VERSION}
|
|
restart: unless-stopped
|
|
command: node admin/server.js admin
|
|
deploy:
|
|
replicas: ${ADMIN_REPLICAS:-1}
|
|
depends_on:
|
|
- api
|
|
- web
|
|
|
|
web:
|
|
<<: *app-env
|
|
image: registry.plane.tools/plane/web-enterprise:${APP_RELEASE_VERSION}
|
|
pull_policy: if_not_present
|
|
restart: unless-stopped
|
|
command: node web/server.js web
|
|
deploy:
|
|
replicas: ${WEB_REPLICAS:-1}
|
|
depends_on:
|
|
- api
|
|
- worker
|
|
|
|
space:
|
|
<<: *app-env
|
|
image: registry.plane.tools/plane/space-enterprise:${APP_RELEASE_VERSION}
|
|
pull_policy: if_not_present
|
|
restart: unless-stopped
|
|
command: node space/server.js space
|
|
deploy:
|
|
replicas: ${SPACE_REPLICAS:-1}
|
|
depends_on:
|
|
- api
|
|
- worker
|
|
- web
|
|
|
|
api:
|
|
<<: *app-env
|
|
image: registry.plane.tools/plane/backend-enterprise:${APP_RELEASE_VERSION}
|
|
pull_policy: if_not_present
|
|
restart: unless-stopped
|
|
command: ./bin/docker-entrypoint-api-ee.sh
|
|
deploy:
|
|
replicas: ${API_REPLICAS:-1}
|
|
volumes:
|
|
- ${INSTALL_DIR}/logs/api:/code/plane/logs
|
|
depends_on:
|
|
- plane-db
|
|
- plane-redis
|
|
|
|
worker:
|
|
<<: *app-env
|
|
image: registry.plane.tools/plane/backend-enterprise:${APP_RELEASE_VERSION}
|
|
pull_policy: if_not_present
|
|
restart: unless-stopped
|
|
command: ./bin/docker-entrypoint-worker.sh
|
|
volumes:
|
|
- ${INSTALL_DIR}/logs/worker:/code/plane/logs
|
|
depends_on:
|
|
- api
|
|
- plane-db
|
|
- plane-redis
|
|
|
|
beat-worker:
|
|
<<: *app-env
|
|
image: registry.plane.tools/plane/backend-enterprise:${APP_RELEASE_VERSION}
|
|
pull_policy: if_not_present
|
|
restart: unless-stopped
|
|
command: ./bin/docker-entrypoint-beat.sh
|
|
volumes:
|
|
- ${INSTALL_DIR}/logs/beat-worker:/code/plane/logs
|
|
depends_on:
|
|
- api
|
|
- plane-db
|
|
- plane-redis
|
|
|
|
migrator:
|
|
<<: *app-env
|
|
image: registry.plane.tools/plane/backend-enterprise:${APP_RELEASE_VERSION}
|
|
pull_policy: if_not_present
|
|
restart: "no"
|
|
command: ./bin/docker-entrypoint-migrator.sh
|
|
volumes:
|
|
- ${INSTALL_DIR}/logs/migrator:/code/plane/logs
|
|
depends_on:
|
|
- plane-db
|
|
- plane-redis
|
|
|
|
plane-db:
|
|
<<: *app-env
|
|
image: registry.plane.tools/plane/postgres:15.5-alpine
|
|
pull_policy: if_not_present
|
|
restart: unless-stopped
|
|
command: postgres -c 'max_connections=1000'
|
|
volumes:
|
|
- ${INSTALL_DIR}/data/db:/var/lib/postgresql/data
|
|
|
|
plane-redis:
|
|
<<: *app-env
|
|
image: registry.plane.tools/plane/valkey:7.2.5-alpine
|
|
pull_policy: if_not_present
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ${INSTALL_DIR}/data/redis:/data
|
|
|
|
plane-minio:
|
|
<<: *app-env
|
|
image: registry.plane.tools/plane/minio:latest
|
|
pull_policy: if_not_present
|
|
restart: unless-stopped
|
|
command: server /export --console-address ":9090"
|
|
volumes:
|
|
- ${INSTALL_DIR}/data/minio/uploads:/export
|
|
- ${INSTALL_DIR}/data/minio/data:/data
|
|
|
|
# Comment this if you already have a reverse proxy running
|
|
proxy:
|
|
<<: *app-env
|
|
image: registry.plane.tools/plane/proxy-enterprise:${APP_RELEASE_VERSION}
|
|
pull_policy: if_not_present
|
|
restart: unless-stopped
|
|
ports:
|
|
- ${LISTEN_HTTP_PORT}:80
|
|
depends_on:
|
|
- web
|
|
- api
|
|
- space
|