From 676a22b9aff31a6b642cc5db11bdcce02ca17a4c Mon Sep 17 00:00:00 2001 From: Christian Galo Date: Sat, 19 Apr 2025 02:14:08 +0000 Subject: [PATCH] Update Docker Compose configuration: change site image to hugomods/hugo:nginx-1.27.4 and add volume mapping --- compose-new.yaml => compose-old.yaml | 15 ++++++++------- compose.yaml | 9 +++++++-- 2 files changed, 15 insertions(+), 9 deletions(-) rename compose-new.yaml => compose-old.yaml (72%) diff --git a/compose-new.yaml b/compose-old.yaml similarity index 72% rename from compose-new.yaml rename to compose-old.yaml index 44a4ec0..961d9de 100644 --- a/compose-new.yaml +++ b/compose-old.yaml @@ -1,10 +1,14 @@ services: site: - image: hugomods/hugo:nginx-1.27.4 + image: git.coopcloud.tech/wiki-cafe/wiki-cafe-site:latest networks: - proxy - volumes: - - public:/site + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost"] + interval: 10s + timeout: 10s + retries: 10 + start_period: 15s deploy: update_config: failure_action: rollback @@ -21,7 +25,4 @@ services: networks: proxy: - external: true - -volumes: - public: \ No newline at end of file + external: true \ No newline at end of file diff --git a/compose.yaml b/compose.yaml index 961d9de..2e92160 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,8 +1,10 @@ services: site: - image: git.coopcloud.tech/wiki-cafe/wiki-cafe-site:latest + image: hugomods/hugo:nginx-1.27.4 networks: - proxy + volumes: + - public:/site healthcheck: test: ["CMD", "curl", "-f", "http://localhost"] interval: 10s @@ -25,4 +27,7 @@ services: networks: proxy: - external: true \ No newline at end of file + external: true + +volumes: + public: \ No newline at end of file