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