Build a CRUD API with Docker Node.JS Express.JS & PostgreSQL

Build a CRUD API with Docker Node.JS Express.JS & PostgreSQL

Smoljames

1 год назад

33,957 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@Smoljames
@Smoljames - 08.03.2023 18:57

Here's a breakdown of each of the Dockerfile commands :) also don't mind the buggy facecam at the end of the video lol

FROM - specifies the base image for the Docker image you are creating. All subsequent instructions in the Dockerfile will be applied on top of this base image.

WORKDIR - sets the working directory for any subsequent instructions that follow it in the Dockerfile. This is where commands like RUN and COPY will be executed.

COPY - copies files or directories from the host machine to the Docker image. The first argument is the path to the file or directory on the host machine, and the second argument is the destination path in the Docker image.

RUN - executes a command in the Docker image. This can be used to install packages, run build commands, and do other tasks required to configure the image.

EXPOSE - documents the ports that the Docker image is expected to listen on when it is run. It does not actually publish the ports.

CMD - specifies the command to run when the Docker container is started from the image. If the Docker container is started with a command-line argument, it will override the CMD instruction. There can only be one CMD instruction in a Dockerfile, and it should be the last instruction.

Ответить
@walterandrade4273
@walterandrade4273 - 16.11.2023 01:53

great tutorial, thank you

Ответить
@J3rist0
@J3rist0 - 07.11.2023 16:59

If I wanted to connect my pgAdmin to the postgres on the container how would I do this? I've spent more time than I'd like to admit trying to get that to work but with no results. Help would me much appreciated.

Ответить
@user-ji6ip7ou8d
@user-ji6ip7ou8d - 17.10.2023 15:51

Damn, I've never seen this Docker configuration. I've started learning backdev recently and the amount of project configurations is just mindblowing. It's really easy to get lost in this whole ocean of information

Ответить
@timlinator
@timlinator - 27.09.2023 18:15

I can't find this code on your git hub

Ответить
@AbhishekKumar-lp5rc
@AbhishekKumar-lp5rc - 19.07.2023 06:24

Text size too small

Ответить
@jindrichknedla7406
@jindrichknedla7406 - 16.07.2023 23:40

Great tutorial. Really helped! Thank you <3

Ответить
@prashlovessamosa
@prashlovessamosa - 12.04.2023 15:48

Thanks.

Ответить
@denyscole7382
@denyscole7382 - 08.03.2023 23:33

Is there a specific reason for using commonjs modules over ES6 modules?

Ответить
@Cransh759
@Cransh759 - 08.03.2023 19:28

Great tutorial keep up the good work ❤

Ответить
@sibbirshahriyar9742
@sibbirshahriyar9742 - 08.03.2023 18:58

Noice

Ответить