mirror of
				https://github.com/dani-garcia/vaultwarden.git
				synced 2025-10-28 00:40:01 +02:00 
			
		
		
		
	Healthcheck fixes/optimizations
* Switch healthcheck interval/timeout from 30s/3s to 60s/10s. 30s interval is arguably overkill, and 3s timeout is definitely too short for lower end machines. * Use HEALTHCHECK CMD exec form to avoid superfluous `sh` invocations. * Add `--silent --show-error` flags to curl call to avoid progress meter being shown in healthcheck logs.
This commit is contained in:
		| @@ -12,7 +12,7 @@ | ||||
| #  - From the console, with the following commands: | ||||
| #      docker pull bitwardenrs/web-vault:v2.12.0e | ||||
| #      docker image inspect --format "{{.RepoDigests}}" bitwardenrs/web-vault:v2.12.0e | ||||
| #       | ||||
| # | ||||
| #  - To do the opposite, and get the tag from the hash, you can do: | ||||
| #      docker image inspect --format "{{.RepoTags}}" bitwardenrs/web-vault@sha256:feb3f46d15738191b9043be4cdb1be2c0078ed411e7b7be73a2f4fcbca01e13c | ||||
| FROM bitwardenrs/web-vault@sha256:feb3f46d15738191b9043be4cdb1be2c0078ed411e7b7be73a2f4fcbca01e13c as vault | ||||
| @@ -94,9 +94,9 @@ COPY Rocket.toml . | ||||
| COPY --from=vault /web-vault ./web-vault | ||||
| COPY --from=build /app/target/x86_64-unknown-linux-musl/release/bitwarden_rs . | ||||
|  | ||||
| COPY docker/healthcheck.sh ./healthcheck.sh | ||||
| COPY docker/healthcheck.sh /healthcheck.sh | ||||
|  | ||||
| HEALTHCHECK --interval=30s --timeout=3s CMD sh healthcheck.sh || exit 1 | ||||
| HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] | ||||
|  | ||||
| # Configures the startup! | ||||
| WORKDIR / | ||||
|   | ||||
		Reference in New Issue
	
	Block a user