#Impossible to deploy MedusaJS

3 messages · Page 1 of 1 (latest)

mental epoch
#

So i've checked some platforms to deploy my MedusaJS React Application, i need first to deploy backend and then the front. But i struggle since a week on it. Tried Azure Web Apps, Render, Vercel, cannot deploy, i'm trying to switch to docker to make a container with everything needed Postgres, Redis, and deploy in production.

But first, it doesn't take my .env files i don't know why.
Made a dockerfile and docker compose file

version: '3.8'
services:
backend:
# image: backend:test
build:
context: .
dockerfile: Dockerfile
target: backend-builder
volumes:
- ./tanit-app-medusa:/app/backend
depends_on:
- postgres
- redis
environment:
NODE_ENV: development
DATABASE_URL: postgres://postgres:testtest@postgres:5432/medusa-MuQ4
REDIS_URL: redis://localhost
ports:
- "9000:9000"

redis:
image: redis
container_name: cache
expose:
- 6379
postgres:
image: postgres:10.4
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: testtest
POSTGRES_DB: medusa-MuQ4

Here is my docker compose and in my dockerfile i give instructions for npm install with entrypoints. But i always get an error so the backend exit. Error binding for medusa/admin. I don't know but builds always fail. Does anybody have an idea ? Thank you very much

amber ledge
#

I use render and railway to delploy medusa projects and haven't used anything else.. It deloyed flawlessly on both.
Basically one click deploy from github repo and just had to add env variables

warped kelp
#

it's possible and i deployed.