- Ajout scripts/ reproduisant chaque étape (secrets, render config, up CLI, init Garage, bootstrap prod, admin, vérif E2E, adoption Coolify, backup) - Templates envsubst (config.yml, garage.toml, cantaloupe.properties) + .example - deploy.conf (config non-secrète : domaine, versions, uuids Coolify) - docs/ : ARCHITECTURE, TROUBLESHOOTING (11 problèmes/fixes), RUNBOOK, SECURITY - Makefile (raccourcis) - .gitignore + retrait du suivi de .env/.secrets.env/config.yml/garage.toml (fichiers conservés sur disque ; secrets restent dans l'historique -> voir SECURITY.md) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
34 lines
1.1 KiB
Bash
Executable File
34 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Déploiement complet en mode "docker compose" (CLI), de A à Z.
|
|
# Prérequis : Docker + réseau externe "coolify" (proxy Traefik) + DNS *.<DOMAIN> -> serveur.
|
|
# NB : ce script force le mode CLI (conteneurs sans suffixe Coolify).
|
|
source "$(dirname "$0")/lib.sh"
|
|
export CONTAINER_SUFFIX="" # mode CLI
|
|
|
|
cd "$ROOT"
|
|
|
|
log "1/6 Secrets + configs"
|
|
scripts/00-gen-secrets.sh
|
|
scripts/01-render-config.sh
|
|
|
|
log "2/6 Infra de base (db, redis, solr, garage)"
|
|
docker compose up -d db redis solr garage
|
|
# attendre Postgres
|
|
until docker inspect ark-database --format '{{.State.Health.Status}}' 2>/dev/null | grep -q healthy; do sleep 3; done
|
|
|
|
log "3/6 Init Garage"
|
|
scripts/20-garage-init.sh
|
|
|
|
log "4/6 Backend + migrations + bootstrap prod"
|
|
docker compose up -d backend
|
|
until docker inspect ark-backend --format '{{.State.Health.Status}}' 2>/dev/null | grep -q healthy; do sleep 3; done
|
|
scripts/30-arkindex-init.sh
|
|
|
|
log "5/6 Reste de la stack (cantaloupe, front, worker)"
|
|
docker compose up -d cantaloupe front worker
|
|
|
|
log "6/6 Compte admin"
|
|
scripts/40-create-admin.sh
|
|
|
|
ok "Déploiement CLI terminé. Vérifie avec scripts/50-verify.sh"
|