Skip to content

Commit 5ceab61

Browse files
committed
Add healthcheck to dockerfile
Possible now that the health endpoint is restored.
1 parent 1c3825c commit 5ceab61

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docker/Dockerfile.prod

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ COPY ./docker/conf/engine.conf /etc/apache2/sites-enabled/engine.conf
1616
# Instantiate devconf config
1717
RUN cp config/packages/parameters.yml.dist config/packages/parameters.yml
1818

19+
HEALTHCHECK \
20+
--start-period=30s \
21+
--start-interval=1s \
22+
--interval=10s \
23+
--timeout=1s \
24+
--retries=20 \
25+
CMD curl --fail -s -o /dev/null -w "%{http_code}" http://localhost/internal/health
26+
1927
# Set the default workdir
2028
EXPOSE 80
2129
CMD ["apache2-foreground"]

0 commit comments

Comments
 (0)