Subject says it all. The other containers seem to spin up fine up until trying to access the storefront or seeding data (this is the installation guide I've been following thus far). Please see below for the error message, docker-compose.yml entries, and modifications.
Dockerfile modifications
Change node version from node:17.1.0-alpine to node:18-alpine3.18 in the Dockerfiles for admin, backend, and storefront.
Error when trying to seed the database with dummy info
docker exec medusajs-server medusa seed -f ./data/seed.json
TypeError: typeorm_1.DataSource is not a constructor
at /app/medusa/node_modules/@medusajs/medusa/dist/commands/seed.js:137:34
at step (/app/medusa/node_modules/@medusajs/medusa/dist/commands/seed.js:67:23)
at Object.next (/app/medusa/node_modules/@medusajs/medusa/dist/commands/seed.js:48:53)
at /app/medusa/node_modules/@medusajs/medusa/dist/commands/seed.js:42:71
at new Promise (<anonymous>)
at __awaiter (/app/medusa/node_modules/@medusajs/medusa/dist/commands/seed.js:38:12)
at seed (/app/medusa/node_modules/@medusajs/medusa/dist/commands/seed.js:103:12)
at /usr/local/share/.config/yarn/global/node_modules/@medusajs/medusa-cli/dist/create-cli.js:138:20
at /usr/local/share/.config/yarn/global/node_modules/@medusajs/medusa-cli/dist/create-cli.js:48:30
at Object.handler (/usr/local/share/.config/yarn/global/node_modules/@medusajs/medusa-cli/dist/create-cli.js:16:21)
docker-compose.yml snippet (ignore the labels unless you're running a similar setup; my own customizations)
Subject says it all. The other containers seem to spin up fine up until trying to access the storefront or seeding data (this is the installation guide I've been following thus far). Please see below for the error message,
docker-compose.yml
entries, and modifications.Dockerfile modifications
Change node version from
node:17.1.0-alpine
tonode:18-alpine3.18
in the Dockerfiles foradmin
,backend
, andstorefront
.Error message from
backend
Error when trying to seed the database with dummy info
docker-compose.yml
snippet (ignore the labels unless you're running a similar setup; my own customizations)