diff --git a/.env.example b/.env.example index 166fbb9b7..fc1aef49d 100644 --- a/.env.example +++ b/.env.example @@ -21,10 +21,12 @@ NEXT_PUBLIC_TRACK_EVENTS=0 NEXT_PUBLIC_SLACK_CLIENT_ID="" # Backend - # Debug value for api server use it as 0 for production use DEBUG=0 +# Error logs +SENTRY_DSN="" + # Database Settings PGUSER="plane" PGPASSWORD="plane" diff --git a/docker-compose-hub.yml b/docker-compose-hub.yml index 8087bd427..63f196300 100644 --- a/docker-compose-hub.yml +++ b/docker-compose-hub.yml @@ -28,6 +28,8 @@ services: env_file: - .env environment: + DEBUG: ${DEBUG} + SENTRY_DSN: ${SENTRY_DSN} DJANGO_SETTINGS_MODULE: plane.settings.production DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:5432/${PGDATABASE} REDIS_URL: redis://plane-redis:6379/ @@ -52,7 +54,6 @@ services: DEFAULT_EMAIL: ${DEFAULT_EMAIL} DEFAULT_PASSWORD: ${DEFAULT_PASSWORD} USE_MINIO: ${USE_MINIO} - DEBUG: ${DEBUG} depends_on: - plane-db - plane-redis @@ -65,6 +66,8 @@ services: env_file: - .env environment: + DEBUG: ${DEBUG} + SENTRY_DSN: ${SENTRY_DSN} DJANGO_SETTINGS_MODULE: plane.settings.production DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:5432/${PGDATABASE} REDIS_URL: redis://plane-redis:6379/ @@ -89,7 +92,6 @@ services: DEFAULT_EMAIL: ${DEFAULT_EMAIL} DEFAULT_PASSWORD: ${DEFAULT_PASSWORD} USE_MINIO: ${USE_MINIO} - DEBUG: ${DEBUG} depends_on: - plane-api - plane-db diff --git a/docker-compose.yml b/docker-compose.yml index bacfe5cb2..640bb723e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -38,6 +38,7 @@ services: - .env environment: DEBUG: ${DEBUG} + SENTRY_DSN: ${SENTRY_DSN} DJANGO_SETTINGS_MODULE: plane.settings.production DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:5432/${PGDATABASE} REDIS_URL: redis://plane-redis:6379/ @@ -80,6 +81,7 @@ services: - .env environment: DEBUG: ${DEBUG} + SENTRY_DSN: ${SENTRY_DSN} DJANGO_SETTINGS_MODULE: plane.settings.production DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:5432/${PGDATABASE} REDIS_URL: redis://plane-redis:6379/