Closed chris-tbd closed 4 months ago
@michaelneale right now docker-compose
isn't bulletproof because it's not running the db migration scripts, I'm trying to unblock deployment and can manually run those scripts by logging into the cluster. Was talking with @leordev and we'll work on getting those migration scripts in, but until that point this isn't meant for just anyone to use quite yet
This pull request primarily focuses on integrating Docker into the project. This includes the addition of Docker-related files, the setup of a Docker workflow on GitHub, and the modification of
package.json
to include Docker-related scripts.Docker Integration:
.dockerignore
: Added a.dockerignore
file to specify files and directories that Docker should ignore. This helps to avoid unnecessarily sending large or sensitive files and directories to the Docker daemon and potentially adding them to images.Dockerfile
: Added a Dockerfile to define how to build a Docker image for the application. This includes setting up the Node.js environment, copying the application files, installing dependencies, and setting up dbmate.docker-compose.yaml
: Added adocker-compose.yaml
file to define and run multi-container Docker applications. This sets up two services:postgresdb
andpfi-app
.GitHub Workflow:
.github/workflows/docker-image-publish.yml
: Added a GitHub workflow to automatically build and publish Docker images when changes are pushed to themain
branch or when a pull request is made to themain
branch.Package.json Modifications:
package.json
: Added several Docker-related scripts topackage.json
, includingdocker:up
,docker:down
,docker:logs
,docker:build
, anddocker:down-wipe
. These scripts provide convenient commands for managing Docker containers and images.