-
Notifications
You must be signed in to change notification settings - Fork 375
Add Multica template #798
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
Add Multica template #798
Changes from all commits
a36253b
85803a2
2845cc4
68d7814
3c2a5a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| name: multica | ||
|
|
||
| services: | ||
| postgres: | ||
| image: pgvector/pgvector:pg17 | ||
| restart: unless-stopped | ||
| environment: | ||
| POSTGRES_DB: ${POSTGRES_DB} | ||
| POSTGRES_USER: ${POSTGRES_USER} | ||
| POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} | ||
| volumes: | ||
| - pgdata:/var/lib/postgresql/data | ||
| healthcheck: | ||
| test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] | ||
| interval: 5s | ||
| timeout: 5s | ||
| retries: 10 | ||
|
|
||
| backend: | ||
| build: | ||
| context: "https://github.com/multica-ai/multica.git#main" | ||
| dockerfile: Dockerfile | ||
| restart: unless-stopped | ||
| depends_on: | ||
| postgres: | ||
| condition: service_healthy | ||
| ports: | ||
| - "8080" | ||
| volumes: | ||
| - backend_uploads:/app/data/uploads | ||
| environment: | ||
| DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?sslmode=disable | ||
| PORT: "8080" | ||
| JWT_SECRET: ${JWT_SECRET} | ||
| FRONTEND_ORIGIN: ${FRONTEND_ORIGIN} | ||
| ALLOWED_ORIGINS: ${ALLOWED_ORIGINS} | ||
| MULTICA_APP_URL: ${MULTICA_APP_URL} | ||
| RESEND_API_KEY: ${RESEND_API_KEY} | ||
| RESEND_FROM_EMAIL: ${RESEND_FROM_EMAIL} | ||
| GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID} | ||
| GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET} | ||
| GOOGLE_REDIRECT_URI: ${GOOGLE_REDIRECT_URI} | ||
| COOKIE_DOMAIN: ${COOKIE_DOMAIN} | ||
| S3_BUCKET: ${S3_BUCKET} | ||
| S3_REGION: ${S3_REGION} | ||
| CLOUDFRONT_DOMAIN: ${CLOUDFRONT_DOMAIN} | ||
| CLOUDFRONT_KEY_PAIR_ID: ${CLOUDFRONT_KEY_PAIR_ID} | ||
| CLOUDFRONT_PRIVATE_KEY: ${CLOUDFRONT_PRIVATE_KEY} | ||
|
|
||
| frontend: | ||
| build: | ||
| context: "https://github.com/multica-ai/multica.git#main" | ||
| dockerfile: Dockerfile.web | ||
| args: | ||
| REMOTE_API_URL: http://backend:8080 | ||
| NEXT_PUBLIC_WS_URL: ${NEXT_PUBLIC_WS_URL} | ||
| NEXT_PUBLIC_GOOGLE_CLIENT_ID: ${NEXT_PUBLIC_GOOGLE_CLIENT_ID} | ||
| restart: unless-stopped | ||
| depends_on: | ||
| - backend | ||
| ports: | ||
| - "3000" | ||
| environment: | ||
| HOSTNAME: "0.0.0.0" | ||
|
|
||
| volumes: | ||
| pgdata: | ||
| backend_uploads: | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| [variables] | ||
| app_domain = "${domain}" | ||
| api_domain = "${domain}" | ||
| jwt_secret = "${password:64}" | ||
| postgres_password = "${password:32}" | ||
|
|
||
| [config] | ||
| [[config.domains]] | ||
| serviceName = "frontend" | ||
| port = 3000 | ||
| host = "${app_domain}" | ||
| path = "/" | ||
|
|
||
| [[config.domains]] | ||
| serviceName = "backend" | ||
| port = 8080 | ||
| host = "${api_domain}" | ||
| path = "/" | ||
|
|
||
| [config.env] | ||
| POSTGRES_DB = "multica" | ||
| POSTGRES_USER = "multica" | ||
| POSTGRES_PASSWORD = "${postgres_password}" | ||
| JWT_SECRET = "${jwt_secret}" | ||
| FRONTEND_ORIGIN = "https://${app_domain}" | ||
| ALLOWED_ORIGINS = "https://${app_domain}" | ||
| MULTICA_APP_URL = "https://${app_domain}" | ||
| NEXT_PUBLIC_WS_URL = "wss://${api_domain}/ws" | ||
| RESEND_API_KEY = "" | ||
| RESEND_FROM_EMAIL = "noreply@multica.ai" | ||
| GOOGLE_CLIENT_ID = "" | ||
| GOOGLE_CLIENT_SECRET = "" | ||
| GOOGLE_REDIRECT_URI = "https://${app_domain}/auth/callback" | ||
| NEXT_PUBLIC_GOOGLE_CLIENT_ID = "" | ||
| COOKIE_DOMAIN = "" | ||
| S3_BUCKET = "" | ||
| S3_REGION = "us-west-2" | ||
| CLOUDFRONT_DOMAIN = "" | ||
| CLOUDFRONT_KEY_PAIR_ID = "" | ||
| CLOUDFRONT_PRIVATE_KEY = "" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Since this defaults to |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#mainrefBoth services build from
https://github.com/multica-ai/multica.git#main, which always resolves to the latest commit onmain. Any breaking upstream change silently breaks all future deployments of this template with no way to roll back. Pinning to a specific commit SHA or semver tag (once the project cuts releases) would make deployments reproducible and safe to re-deploy.This matches the acknowledged
firecrawl/nuq-postgrespattern; at minimum, a comment noting "pin this to a release tag once available" would help future maintainers.