Comments (9)
@endigo I invited you, the branch I am working on is raquel/dockerize
from medusa.
Your NEXT_PUBLIC_* env variables are wrong. It should be localhost
or ip of host
...
environment:
- NEXT_PUBLIC_MEDUSA_BACKEND_URL=http://localhost:9000
- NEXT_PUBLIC_BASE_URL=http://localhost:8000
...
from medusa.
The http://back:9000)
one is actually wrong, thanks! it should be backend
due to the service name.
This is a docker compose environment, since back and front are not on the same container, localhost would not work. In docker compose, each service should be available like that, shouldn't it? see the DATABASE_URL @db ? that works just fine.
yet i changed it to backend and still not working, maybe there's somewhere else where it's wrong? @endigo
from medusa.
oh maybe I get it, since the browser needs to access it, backend and front ips would not always work either, let me check with 127.0.0.1 (although I am not sure the browser accesses :9000, it should be the frontend server who does right?)
from medusa.
also, 7001 is not working either, with no error at all:
the logs suggest it should work:
geekle_ia-backend-1 | 11:13:46 PM [@medusajs/admin] Started development server on http://localhost:7001/
geekle_ia-backend-1 | <i> [webpack-dev-server] Project is running at:
geekle_ia-backend-1 | <i> [webpack-dev-server] Loopback: http://localhost:7001/, http://127.0.0.1:7001/
geekle_ia-backend-1 | <i> [webpack-dev-server] Content not from webpack is served from '/app/public' directory
geekle_ia-backend-1 | <i> [webpack-dev-server] 404s will fallback to '/'
from medusa.
@raquelhortab can you share an example repo that I can help you out here?
from medusa.
I changed the compose file to this:
environment:
- NEXT_PUBLIC_MEDUSA_BACKEND_URL=http://127.0.0.1:9000
- NEXT_PUBLIC_BASE_URL=http://127.0.0.1:8000
network_mode: host
and still not working but now I get a redirect
Yes, let me send an invitation, just a sec @endigo
from medusa.
note: I saw I could not access either backend:9000 not 127.0.0.1:backend from the front container so I added network_mode: host and now I can access
from medusa.
Hey, thanks for being interested in Medusa, that's great to hear! We reserve Github issues for bug reports, and since this seems to be more of a question on docker compose, please head to our Discord channel to get help from the community. Thanks!
from medusa.
Related Issues (20)
- Omnibus directive compliance
- Docs(Code Issue): Code Issue in /deployments/server/deploying-on-heroku HOT 1
- admin dashboard will be opened in your default browser
- Exposing sensitive logged-in customer data in persisted cart after session expiry
- Add a note about trailing backslashes HOT 6
- Custom endpoint does not work and only works after saving a file that restarting the server. HOT 2
- Update Heroku CLI commands HOT 1
- Metadata on product_category does not exist HOT 2
- bug: has_account missing in AdminCustomersParams validator, breaking e.g. GET /admin/customers
- Issues when registering US Region HOT 2
- Scheduled jobs print an empty "error:" after every successful execution
- Routes starting with /store/customers/me are not protected by default HOT 1
- [Orders Module] Translations fix HOT 2
- After deploy, when app is not used throws relation does not exist HOT 1
- Extending cart does not work HOT 4
- Error when adding draft order using Multi-Warehouse Modules HOT 1
- Products.search fails when sales channels are turned on via public api key HOT 3
- Medusa v2 Docs: Issue in 1. Introduction - Medusa v2 Docs
- bug: No export defineRouteConfig HOT 1
- Wrong column name in migration for unique key with camelCase naming HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from medusa.