feat(deploy): add Central auto-updates
Heimdall Gitea / Detect CI scope (pull_request) Successful in 4s
Heimdall Gitea / Build and tests (pull_request) Successful in 18m29s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / Build and scan server image (pull_request) Successful in 7m58s
Heimdall Gitea / Build and scan agent image (pull_request) Successful in 11m0s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Successful in 2s
Heimdall Gitea / Detect CI scope (pull_request) Successful in 4s
Heimdall Gitea / Build and tests (pull_request) Successful in 18m29s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / Build and scan server image (pull_request) Successful in 7m58s
Heimdall Gitea / Build and scan agent image (pull_request) Successful in 11m0s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Successful in 2s
This commit is contained in:
1 parent
546115e2ea
commit
8a70d2ee1f
13 files changed
+276
-68
No files matched your search
+34
-11
@@ -14,15 +14,38 @@ repository; cloning the repository is not required:
|
||||
curl -fsSL https://sources.tordais.cc/arnaud.dartois/Heimdall/raw/branch/main/install/install-server.sh | bash
|
||||
```
|
||||
|
||||
The installer uses the server image `eltruncho/heimdall:latest` from Docker Hub,
|
||||
creates a minimal Central + PostgreSQL Compose project, generates PostgreSQL
|
||||
and JWT secrets, and writes them to a mode-600 `.env` and secret file in the
|
||||
chosen installation directory. It asks which optional services to prepare and
|
||||
whether to start each one. Selected optional Compose files and backup scripts
|
||||
are fetched individually; no repository checkout is created. Integration URLs
|
||||
and credentials remain configured in Central's UI. The script requires an
|
||||
interactive terminal and reads prompts from it even when downloaded with a
|
||||
pipe.
|
||||
The installer uses `eltruncho/heimdall:latest` from Docker Hub, creates a
|
||||
minimal Central + PostgreSQL Compose project, and configures the maintained
|
||||
`nickfedor/watchtower` fork to check the explicitly labelled Central container
|
||||
every 24 hours. Watchtower uses `--cleanup` to remove the previous Central
|
||||
image after updating; it does not remove PostgreSQL data or named volumes.
|
||||
`pull_policy: always` also makes each `docker compose up` pull the configured
|
||||
images, including optional service Compose files. It generates PostgreSQL and JWT secrets locally and writes them to a
|
||||
mode-600 `.env` and secret file in the chosen installation directory. It asks
|
||||
which optional services to prepare and whether to start each one. Selected
|
||||
optional Compose files and backup scripts are fetched individually; no
|
||||
repository checkout is created. Integration URLs and credentials remain
|
||||
configured in Central's UI. The script requires an interactive terminal and
|
||||
reads prompts from it even when downloaded with a pipe.
|
||||
|
||||
Running either installer again in the same directory offers to refresh the
|
||||
generated Compose. It first validates the new file, saves the previous one as
|
||||
`docker-compose.yml.bak.<timestamp>`, and replaces it. Existing `.env`, secret
|
||||
files, and Docker volumes are preserved. If the new Compose requires an env
|
||||
key that is missing, the installer adds a generated secret or a default value
|
||||
without changing existing entries. It does not rotate the PostgreSQL password;
|
||||
the existing secret file and `DATABASE_URL` must remain paired. Declining the
|
||||
update leaves the installation unchanged. Inspect custom Compose edits in the
|
||||
backup before deciding whether to carry them into future generated versions.
|
||||
If you choose an optional service again, its refreshed Compose or script asset
|
||||
also gets a timestamped backup before replacement.
|
||||
|
||||
Watchtower needs access to `/var/run/docker.sock`, which grants broad control
|
||||
over the Docker host. The upstream project describes itself for homelabs and
|
||||
similar setups and does not recommend it for commercial/production workloads;
|
||||
automatic latest-tag updates also do not provide staged rollout or rollback.
|
||||
For stricter production change control, disable/remove the Watchtower service
|
||||
and deploy a reviewed image digest through an orchestrator or release process.
|
||||
|
||||
On Windows 10/11 with Docker Desktop in Linux-container mode, use PowerShell to
|
||||
download and run the matching installer without cloning the repository:
|
||||
@@ -44,8 +67,8 @@ variable also selects the optional Compose and backup files fetched by the
|
||||
installer. An offline installation must also provide those selected assets.
|
||||
|
||||
The repository's `docker/docker-compose.prod.yml` is a manual alternative for
|
||||
operators who need a custom layout. It does not use files generated by the
|
||||
interactive installer. Keep `docker/.env` private (mode 600) and create a
|
||||
operators who need a custom layout. It includes the same scoped Watchtower
|
||||
service and pull policies. Keep `docker/.env` private (mode 600) and create a
|
||||
PostgreSQL password file; its value must match the password in `DATABASE_URL`.
|
||||
The `.env.example` file contains development credentials and must not be used
|
||||
unchanged for a production deployment.
|
||||
|
||||
Reference in new issue
Block a user