From 61dfbc88b9f899fbe5b4ebb9c11f12b0bbcfb93e Mon Sep 17 00:00:00 2001 From: Sean Starkey Date: Mon, 1 Jun 2026 12:07:10 -0600 Subject: [PATCH] Fix makefile so that JWT_SECRET is saved for docker-up and docker-down targets --- Makefile | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 683731c..66c849e 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ docker-run: build-jar docker run --rm --name notesvault-api -p 8080:8080 -e JWT_SECRET="$(JWT_SECRET)" notesvault:latest docker-up: - docker compose up -d + JWT_SECRET="$(JWT_SECRET)" docker compose up -d docker-down: - docker compose down + JWT_SECRET="$(JWT_SECRET)" docker compose down diff --git a/README.md b/README.md index b0008de..dd2dab9 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ make test To run the API and PostgreSQL with Docker Compose: ```bash -JWT_SECRET=dev-secret-change-me-do-not-use-in-production make docker-up +make docker-up ``` Stop the Docker Compose stack with: