Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add nginx based docker compose #5498

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

jainpawan21
Copy link
Member

What changed? Why was the change needed?

add nginx based reverse proxy setup with lets encrypt

Docs PR:- novuhq/docs#587

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

@jainpawan21 jainpawan21 requested a review from a team as a code owner May 5, 2024 17:10
@jainpawan21 jainpawan21 requested review from scopsy and Cliftonz and removed request for a team May 5, 2024 17:10
Copy link

netlify bot commented May 5, 2024

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit 5a3aff4
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/6637bd87ad7ae20008c7d1af
😎 Deploy Preview https://deploy-preview-5498--dev-web-novu.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented May 5, 2024

Deploy Preview for novu-design ready!

Name Link
🔨 Latest commit 5a3aff4
🔍 Latest deploy log https://app.netlify.com/sites/novu-design/deploys/6637bd874c737700082a95f4
😎 Deploy Preview https://deploy-preview-5498--novu-design.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the docker label May 5, 2024
VIRTUAL_HOST: ${REACT_APP_WS_HOST}
VIRTUAL_PORT: ${WS_PORT}
LETSENCRYPT_HOST: ${REACT_APP_WS_HOST}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does the system leverage this env variable?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WIDGET_PORT=4500

# Hosts
REACT_APP_WS_HOST=ws.novu.domain.com
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
REACT_APP_WS_HOST=ws.novu.domain.com
WS_HOST=ws.novu.domain.com

MONGO_MIN_POOL_SIZE=100
MONGO_INITDB_ROOT_USERNAME=novu-selfhost
MONGO_INITDB_ROOT_PASSWORD=qwertyuiop
MONGO_URL=mongodb://novu-selfhost:qwertyuiop@mongodb:27017/novu-db?authSource=admin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
MONGO_URL=mongodb://novu-selfhost:qwertyuiop@mongodb:27017/novu-db?authSource=admin
MONGO_URL=mongodb://$MONGO_INITDB_ROOT_USERNAME:$MONGO_INITDB_ROOT_PASSWORD@mongodb:27017/novu-db?authSource=admin

Comment on lines +34 to +35
- nginx-proxy
- nginx-proxy-acme
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nginx-proxy-acme depends on nginx-proxy, so we can just have nginx-proxy-acme here and in some other places as well

MONGO_MAX_POOL_SIZE: ${MONGO_MAX_POOL_SIZE}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REDIS_DB_INDEX: 2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's have this in the variable as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants