add container_name, fix health whitespace

This commit is contained in:
Maxi Quoß
2023-02-11 22:54:19 +01:00
parent 9a1a816f25
commit 3b9decd572
2 changed files with 2 additions and 1 deletions

View File

@@ -17,5 +17,5 @@ RUN apk update &&\
WORKDIR /app WORKDIR /app
COPY --from=downloader /app/upsnap upsnap COPY --from=downloader /app/upsnap upsnap
HEALTHCHECK --interval=10s \ HEALTHCHECK --interval=10s \
CMD curl -fs "http://localhost:8090/api/health " || exit 1 CMD curl -fs "http://localhost:8090/api/health" || exit 1
ENTRYPOINT ["./upsnap", "serve", "--http=0.0.0.0:8090"] ENTRYPOINT ["./upsnap", "serve", "--http=0.0.0.0:8090"]

View File

@@ -1,6 +1,7 @@
version: "3" version: "3"
services: services:
upsnap: upsnap:
container_name: upsnap
image: ghcr.io/seriousm4x/upsnap:3 image: ghcr.io/seriousm4x/upsnap:3
network_mode: host network_mode: host
restart: unless-stopped restart: unless-stopped