diff --git a/Dockerfile b/Dockerfile index c5561d2..8e4f328 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,4 +5,5 @@ COPY hugo /src RUN hugo --minify FROM nginx:1.28.0-alpine-slim -COPY --from=builder /src/public /usr/share/nginx/html \ No newline at end of file +COPY --from=builder /src/public /usr/share/nginx/html +HEALTHCHECK --interval=1m --timeout=10s --start-period=10s CMD wget -q -O /dev/null http://localhost/ || exit 1 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 185409e..aa67ad3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ services: website: build: . - image: alphabreed:v1.0.1 + image: alphabreed:v1.0.2 restart: unless-stopped networks: - frontend