Update Docker Compose configuration: change site image to hugomods/hugo:nginx-1.27.4 and add volume mapping

This commit is contained in:
Christian Galo 2025-04-19 02:14:08 +00:00
parent 3ca4762296
commit 676a22b9af
2 changed files with 15 additions and 9 deletions

View File

@ -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:
external: true

View File

@ -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
external: true
volumes:
public: