Skip to content

Commit

Permalink
Move healthcheck into Dockerfile (#348)
Browse files Browse the repository at this point in the history
* Move healthcheck into Dockerfile

---------

Co-authored-by: Robert Thomas <[email protected]>
  • Loading branch information
voruti and wolveix authored Oct 17, 2024
1 parent c38a63f commit b426a61
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 24 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=180s \
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: [ "CMD", "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: [ "CMD", "bash", "/healthcheck.sh" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 120s
deploy:
resources:
limits:
Expand Down
6 changes: 0 additions & 6 deletions ssl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ services:
depends_on:
certbot:
condition: service_completed_successfully
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 ssl/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ services:
depends_on:
certbot:
condition: service_completed_successfully
healthcheck:
test: bash /healthcheck.sh
interval: 30s
timeout: 10s
retries: 3
start_period: 120s
deploy:
resources:
limits:
Expand Down

0 comments on commit b426a61

Please sign in to comment.