This pull request primarily focuses on the introduction of Docker to the codebase. Docker is a tool that helps to create, deploy, and run applications by using containers. The changes include the creation of Docker-related files and configurations, as well as the addition of Docker-related scripts in the package.json file.
Docker-related changes:
.dockerignore: This file was created to specify files and directories that Docker should ignore when building the Docker image. It includes entries like node_modules, npm-debug.log, docker-compose.yml, .DS_Store, and .git.
Dockerfile: This file was added to define how to build a Docker image for the application. It specifies that the base image should be the official Node.js image, sets the working directory inside the container, copies necessary files, installs application dependencies, and downloads and installs dbmate.
docker-compose.yaml: This file was added to define and configure the application's services. It specifies the use of the latest version of the postgres image and the Node.js 20.4.0 image, sets environment variables, defines dependencies between services, and specifies commands to run.
.github/workflows/docker-image-publish.yml: This file was added to define a GitHub Actions workflow that builds and publishes a Docker image whenever there's a push or pull request to the main branch.
Changes to scripts:
package.json: Docker-related scripts were added, including docker:up to start the Docker containers, docker:down to stop the Docker containers, docker:logs to follow the logs of the Docker containers, and docker:build to build the Docker images.
This pull request primarily focuses on the introduction of Docker to the codebase. Docker is a tool that helps to create, deploy, and run applications by using containers. The changes include the creation of Docker-related files and configurations, as well as the addition of Docker-related scripts in the
package.json
file.Docker-related changes:
.dockerignore
: This file was created to specify files and directories that Docker should ignore when building the Docker image. It includes entries likenode_modules
,npm-debug.log
,docker-compose.yml
,.DS_Store
, and.git
.Dockerfile
: This file was added to define how to build a Docker image for the application. It specifies that the base image should be the official Node.js image, sets the working directory inside the container, copies necessary files, installs application dependencies, and downloads and installs dbmate.docker-compose.yaml
: This file was added to define and configure the application's services. It specifies the use of the latest version of the postgres image and the Node.js 20.4.0 image, sets environment variables, defines dependencies between services, and specifies commands to run..github/workflows/docker-image-publish.yml
: This file was added to define a GitHub Actions workflow that builds and publishes a Docker image whenever there's a push or pull request to themain
branch.Changes to scripts:
package.json
: Docker-related scripts were added, includingdocker:up
to start the Docker containers,docker:down
to stop the Docker containers,docker:logs
to follow the logs of the Docker containers, anddocker:build
to build the Docker images.