{"id":28259781,"url":"https://github.com/nexthis/medusa-coolify","last_synced_at":"2026-02-27T23:43:19.832Z","repository":{"id":290832826,"uuid":"973778742","full_name":"nexthis/medusa-coolify","owner":"nexthis","description":"🚀 Seamless deployment of Medusa v2 using Coolify","archived":false,"fork":false,"pushed_at":"2025-08-10T18:56:58.000Z","size":253,"stargazers_count":22,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-10T20:35:35.562Z","etag":null,"topics":["coolify","devops-tools","medusa","medusajs-v2"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/watch?v=w_4wjA3ZRBw","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nexthis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-27T18:07:44.000Z","updated_at":"2025-08-10T20:08:37.000Z","dependencies_parsed_at":"2025-04-30T20:26:55.079Z","dependency_job_id":"ad261c50-fd0b-4a52-abb7-0c8247c2bb90","html_url":"https://github.com/nexthis/medusa-coolify","commit_stats":null,"previous_names":["nexthis/medusa-coolify"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nexthis/medusa-coolify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nexthis%2Fmedusa-coolify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nexthis%2Fmedusa-coolify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nexthis%2Fmedusa-coolify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nexthis%2Fmedusa-coolify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nexthis","download_url":"https://codeload.github.com/nexthis/medusa-coolify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nexthis%2Fmedusa-coolify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29919367,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"ssl_error","status_checked_at":"2026-02-27T19:37:41.463Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coolify","devops-tools","medusa","medusajs-v2"],"created_at":"2025-05-20T03:12:54.225Z","updated_at":"2026-02-27T23:43:19.827Z","avatar_url":"https://github.com/nexthis.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# medusa-coolify\n\n\u003e Integration module for deploying Medusa.js projects seamlessly using [Coolify](https://coolify.io).\n\n![image](https://github.com/user-attachments/assets/15c9cafe-ea75-4356-9917-960176b11e1d)\n\n\n\n## 🚀 Create PostgreSQL Database\n\nFollow these steps to set up your PostgreSQL database:\n\n1. **Create a PostgreSQL 16 database**  \n   Use the default settings unless your project requires custom configuration.\n\n2. **Enable SSL**  \n   Ensure SSL is enabled for secure database connections. (required on medusa in production mode) \n![image](https://github.com/user-attachments/assets/6841025e-58d4-4f4e-a3f3-d6ac37402770)\n\n## ⚡ Create Redis Database\n\nNo special configuration is required — simply create a Redis instance and you're good to go!\n![image](https://github.com/user-attachments/assets/c06b2c5c-b0ab-43fe-a88a-cd91ef38f7dc)\n\n## 🧩 Create `medusa-server`\n\nSet up the Medusa backend service with the following steps:\n\n### 1. Configure Service\n\nUse the Coolify UI to create a new service named **`medusa-server`**.  \n\nRefer to the screenshots below for guidance:\n\n![Step 1](https://github.com/user-attachments/assets/0cd80df3-eee9-4453-9859-b8ee8167ebee)  \n![Step 2](https://github.com/user-attachments/assets/0bd527f4-b3bf-4942-bf5d-a77c02ed3ad3)\n\n---\n\n### 2. Add Environment Variables\n\nUse the Coolify environment UI to set the following variables:\n\n```env\n# Secrets (generate securely, e.g. `openssl rand -hex 32`)\nCOOKIE_SECRET=supersecret\nJWT_SECRET=supersecret2\n\n# CORS settings\nSTORE_CORS=https://front.site.com\nADMIN_CORS=https://admin.site.com\nAUTH_CORS=https://admin.site.com,https://front.site.com\n\n# Backend configuration\nBACKEND_URL=https://admin.site.com\nDISABLE_ADMIN=false\nWORKER_MODE=server\nPORT=9000\n\n# Database connections\nDATABASE_URL=postgres://user:password@host:port/database\nREDIS_URL=redis://user:password@host:port/database\n```\n\n\u003e ⚠️ **Important:**  \n\u003e Make sure to set **\"Build Variable?\"** to `true` for at least `DATABASE_URL`, `WORKER_MODE` and `REDIS_URL`.\n\n---\n\n📘 **For more information**  \nTo better understand how the Medusa server and worker setup works, visit the official documentation:  \n🔗 [https://docs.medusajs.com/learn/deployment](https://docs.medusajs.com/learn/deployment)\n\n\n## 🧩 Create `medusa-worker`\n\n![image](https://github.com/user-attachments/assets/0cd80df3-eee9-4453-9859-b8ee8167ebee)\n\n![image](https://github.com/user-attachments/assets/0bd527f4-b3bf-4942-bf5d-a77c02ed3ad3)\n\n```env\n# Secrets (generate securely, e.g. `openssl rand -hex 32`)\nCOOKIE_SECRET=supersecret\nJWT_SECRET=supersecret2\n\n# CORS settings\nSTORE_CORS=https://front.site.com\nADMIN_CORS=https://admin.site.com\nAUTH_CORS=https://admin.site.com,https://front.site.com\n\n# Backend configuration\nBACKEND_URL=https://admin.site.com\nDISABLE_ADMIN=true\nWORKER_MODE=worker\nPORT=9000\n\n# Database connections\nDATABASE_URL=postgres://user:password@host:port/database\nREDIS_URL=redis://user:password@host:port/database\n```\n\n\u003e ⚠️ **Important:**  \n\u003e Make sure to set **\"Build Variable?\"** to `true` for at least `DATABASE_URL`, `WORKER_MODE` and `REDIS_URL`.\n\n\n## 💡 Advice, Tips, Plans \u0026 More\n\nHere are a few things to keep in mind when working with this setup:\n\n- 🛠️ **Using the Medusa CLI**  \n  To run Medusa CLI commands inside the `medusa-server`, open the Terminal tab and run:  \n  ```bash\n  node_modules/.bin/medusa \u003ccommand\u003e\n  ```\n\n- 📦 **Database Migrations**  \n  Only the `medusa-server` is responsible for running database migrations.\n\n- 📁 **S3/File Storage Not Configured**  \n  This setup does **not** include S3 or file storage integration by default.  \n  If needed, you'll need to configure it yourself — fortunately, it’s quite simple!\n\n- 🧪 **Development Workflow (Optional)**  \n  For local development, you can use the provided `docker-compose.yaml` and fill `/medusa/.env`.  \n  Start the services and run:\n  ```bash\n  yarn run dev\n  ```\n  \u003e 💬 _Not sure if this is the optimal dev workflow — feel free to share your thoughts!_\n\n---\n\n🎉 That's all for now — until next time!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexthis%2Fmedusa-coolify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnexthis%2Fmedusa-coolify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexthis%2Fmedusa-coolify/lists"}