diff --git a/olhar/deploy.sh b/olhar/deploy.sh index d9cc4f1..3237e1c 100755 --- a/olhar/deploy.sh +++ b/olhar/deploy.sh @@ -15,19 +15,11 @@ else git clone --branch develop --depth 1 "${REPO_URL}" "${BUILD_DIR}" fi -# ── 2. Build des images ─────────────────────────────────────────────────────── -echo "▶ Build de l'image API..." -docker build \ - -t git.goutailler-olivier.com/gato/olhar-api:latest \ - "${BUILD_DIR}/backend" - -echo "▶ Build de l'image PWA..." -docker build \ - -t git.goutailler-olivier.com/gato/olhar-pwa:latest \ - "${BUILD_DIR}/webapp" - -# ── 3. Démarrage du stack ───────────────────────────────────────────────────── -echo "▶ Démarrage du stack..." -docker compose -f "${SCRIPT_DIR}/docker-compose.yml" up -d +# ── 2. Build & démarrage du stack ──────────────────────────────────────────── +echo "▶ Build des images et démarrage du stack..." +docker compose \ + -f "${BUILD_DIR}/docker-compose.yml" \ + --env-file "${SCRIPT_DIR}/.env" \ + up --build -d echo "✓ Stack démarré."