修改docker部署方式
This commit is contained in:
1 parent
a6179aba6a
commit
16e5db3b26
16 files changed
+299
-95
No files matched your search
+6
-2
@@ -3,6 +3,10 @@
|
||||
set -eu
|
||||
PROJECT_ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
python3 "$PROJECT_ROOT/scripts/init-deps.py"
|
||||
python3 "$PROJECT_ROOT/scripts/prepare-deploy.py" --build-database
|
||||
docker compose --env-file "$PROJECT_ROOT/.env" -f "$PROJECT_ROOT/deploy/compose.yaml" up -d --build
|
||||
if [ ! -f "$PROJECT_ROOT/.env" ]; then
|
||||
printf '%s\n' 'Create and configure .env first; see docs/deployment.md.' >&2
|
||||
exit 1
|
||||
fi
|
||||
python3 "$PROJECT_ROOT/scripts/prepare-deploy.py"
|
||||
docker compose --env-file "$PROJECT_ROOT/.env" -f "$PROJECT_ROOT/deploy/compose.yaml" up -d --no-build
|
||||
printf '%s\n' 'When the database is ready, run the documented db-init command once.'
|
||||
Reference in new issue
Block a user