-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add makefile, docker-compose and migrate to node-postgres (#422)
* add makefile, docker-compose and migrate to node-postgres * load variables from .env file * allow no env file for ci cd deployment test * add missing env variable * raise minimum node version to v20.14.0 for tests * update readme * add cycle manager to docker compose * remove console logs for db connections * update pnpx to pnpm exec * add ssl disable * update documentation
- Loading branch information
1 parent
7faaebf
commit 595b657
Showing
72 changed files
with
4,470 additions
and
3,641 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
DB_CONNECTION_URL=postgresql://postgres:secretpassword@localhost:5432 | ||
# DATABASE CONNECTION | ||
DATABASE_HOST="localhost" | ||
DATABASE_PORT="5432" | ||
DATABASE_USER="postgres" | ||
DATABASE_PASSWORD="secretpassword" | ||
DATABASE_NAME="postgres" | ||
|
||
PORT=8080 | ||
COOKIE_PASSWORD=YourPasswortMustBeAtLeast32Charc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Create DB container | ||
docker-run: | ||
@if docker compose up 2>/dev/null; then \ | ||
: ; \ | ||
else \ | ||
echo "Falling back to Docker Compose V1"; \ | ||
docker-compose up; \ | ||
fi | ||
|
||
# Shutdown DB container | ||
docker-down: | ||
@if docker compose down 2>/dev/null; then \ | ||
: ; \ | ||
else \ | ||
echo "Falling back to Docker Compose V1"; \ | ||
docker-compose down; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.