G
G
Gruzchick2019-09-06 13:38:15
Node.js
Gruzchick, 2019-09-06 13:38:15

What is the workflow for developing Web applications on Nodejs with Docker?

Without docker, the development process is as
follows: 1. You write the code
2. The builder is launched when the code changes
3. You look at what happened
5. You commit
6. You push
Conveniently.
And when there is a docker, how does all this happen? What is the process? And how to work with base?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
marataziat, 2019-09-06
@Gruzchick

Everything is very simple, there is an image in the docker - imagine like a snapshot of a virtual machine, you can run it and there will be a running image, a running image is a container!
If it's simple, here's how it looks:
1. You write code
2. You write a Dockerfile (It's your nodejs server app.js that runs, google Dockerfile express.js)
3. If you need some things like postgres or redis, you need to declare them in docker -compose
4. In docker-compose, you need to set volume so that the container knows where your volume is on the physical machine
5. Push from a regular computer as usual

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question