Fix makefile so that JWT_SECRET is saved for docker-up and docker-down targets
This commit is contained in:
4
Makefile
4
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 run --rm --name notesvault-api -p 8080:8080 -e JWT_SECRET="$(JWT_SECRET)" notesvault:latest
|
||||||
|
|
||||||
docker-up:
|
docker-up:
|
||||||
docker compose up -d
|
JWT_SECRET="$(JWT_SECRET)" docker compose up -d
|
||||||
|
|
||||||
docker-down:
|
docker-down:
|
||||||
docker compose down
|
JWT_SECRET="$(JWT_SECRET)" docker compose down
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ make test
|
|||||||
To run the API and PostgreSQL with Docker Compose:
|
To run the API and PostgreSQL with Docker Compose:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
JWT_SECRET=dev-secret-change-me-do-not-use-in-production make docker-up
|
make docker-up
|
||||||
```
|
```
|
||||||
|
|
||||||
Stop the Docker Compose stack with:
|
Stop the Docker Compose stack with:
|
||||||
|
|||||||
Reference in New Issue
Block a user