Now, how do I put Express and Webpack Dev Server (Vue CLI) in the same docker-compose.yml? While, not complicating the deployment. Also, how to deploy and costs?
As you can see in this line: command: sh -c "npm install && npm run dev" docker installs the packages from package.json and runs the npm dev-script. So you only have to make sure express and Webpack are in your package.json and the script starts you dev server on the exposed port.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Now, how do I put Express and Webpack Dev Server (Vue CLI) in the same
docker-compose.yml
? While, not complicating the deployment. Also, how to deploy and costs?As you can see in this line:
command: sh -c "npm install && npm run dev"
docker installs the packages frompackage.json
and runs the npm dev-script. So you only have to make sure express and Webpack are in yourpackage.json
and the script starts you dev server on the exposed port.