Implement lab2 PostgreSQL sessions and Redis cache
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
PROJECT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
|
||||
cd "$PROJECT_DIR"
|
||||
|
||||
docker compose --env-file .env stop --timeout 10 api
|
||||
|
||||
docker compose --env-file .env restart --timeout 10 postgres redis
|
||||
|
||||
docker compose --env-file .env up \
|
||||
-d \
|
||||
--wait \
|
||||
--wait-timeout 60 \
|
||||
api redis
|
||||
Reference in New Issue
Block a user