Medusa
Open-source headless commerce platform for building custom e-commerce experiences.
#e-commerce #headless #cms
2026-02-26
2026-02-26
Getting Started
- Clone the Medusa starter:
git clone https://github.com/medusajs/medusa-starter-default.git --depth=1 my-medusa-store cd my-medusa-store - Create a
docker-compose.ymlfile and add the following content:docker-compose.ymlservices: postgres: image: postgres:15-alpine environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: demo POSTGRES_DB: medusa-store volumes: - postgres_data:/var/lib/postgresql/data redis: image: redis:7-alpine medusa: build: . ports: - "7001:9000" environment: DATABASE_URL: postgres://postgres:demo@postgres:5432/medusa-store?sslmode=disable REDIS_URL: redis://redis:6379 NODE_ENV: development command: sh -c "npx medusa db:migrate && npm run seed && npm run dev" depends_on: - postgres - redis volumes: postgres_data: - Create a
Dockerfileand add the following content:DockerfileFROM node:20-alpine WORKDIR /server COPY package*.json ./ RUN npm install --legacy-peer-deps COPY . . EXPOSE 9000 - Start the containers:
docker compose up --build -d - Wait for initialization (2-3 minutes on first run):
Look for
docker compose logs -f medusaMedusa is readyin the logs, then press Ctrl+C - Create an admin user:
docker compose exec medusa npx medusa user -e [email protected] -p demo1234 - Open the browser and go to http://localhost:7001/app to access the Medusa Admin.
- Email:
[email protected] - Password:
demo1234
- Email: