#Dockerize Nestjs 10 + SWC application

1 messages ยท Page 1 of 1 (latest)

rapid shadow
#

Hi, i want to Dockerize my Nestjs 10 (+ swc) application, but i face some bugs

I build my Dockerfile, and compose.yaml with all service needed.

When i launch docker compose up, all services (pgadmin, postgress, elasticsearch etc...) launch very well , by my nestjs application service exit with error in image 1 (npm ERR! No workspaces found), while i don't have workspaces in my project

These are my files in image

Thank you ๐Ÿ™

wind veldt
#

Can you share your package.json?

rapid shadow
wind veldt
#

Hmm, that look alright. Can you enter the container with docker compose run --rm app sh?

rapid shadow
#

let me try it

fossil herald
#

That error is with your postfix container, not the Nest one.

rapid shadow
fossil herald
#

Ah sorry, it's your pgadmin container.

rapid shadow
#

Ah ok, and how can i fix it please ? ๐Ÿค”

fossil herald
#

No clue. Take it out?

#

See what happens.

rapid shadow
#

and how would i do to watch my database updates ? ๐Ÿค”

fossil herald
#

See if you can get your docker compose running. Then figure out the rest. You could also install pgadmin locally, if necessary.

rapid shadow
rapid shadow
wind veldt
fossil herald
#

hehe... no clue.