Skip to content

Commit

Permalink
Move healthcheck into Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
voruti committed Sep 28, 2024
1 parent 7e1ae65 commit 33cbd74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ RUN mkdir -p /config \
COPY init.sh healthcheck.sh /
COPY --chown=steam:steam run.sh /home/steam/

HEALTHCHECK --timeout=10s --start-period=120s \
CMD bash /healthcheck.sh

WORKDIR /config

ARG VERSION="DEV"
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,6 @@ services:
- ROOTLESS=false
- STEAMBETA=false
restart: unless-stopped
healthcheck:
test: bash /healthcheck.sh
interval: 30s
timeout: 10s
retries: 3
start_period: 120s
deploy:
resources:
limits:
Expand Down
6 changes: 0 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ services:
- ROOTLESS=false
- STEAMBETA=false
restart: unless-stopped
healthcheck:
test: bash /healthcheck.sh
interval: 30s
timeout: 10s
retries: 3
start_period: 120s
deploy:
resources:
limits:
Expand Down

0 comments on commit 33cbd74

Please sign in to comment.