Skip to content
Snippets Groups Projects
Commit a4f58da7 authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Make healthcheck works with SERVER_NAME

parent 8792b1cf
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
RUN pip3 install --no-cache-dir -r requirements.txt RUN pip3 install --no-cache-dir -r requirements.txt
COPY app.py uwsgi.conf ./ COPY app.py uwsgi.conf ./
COPY check-running ./
COPY templates templates/ COPY templates templates/
COPY static/fonts static/fonts/ COPY static/fonts static/fonts/
COPY static/images static/images/ COPY static/images static/images/
......
#!/bin/sh
set -e
curl -f "http://${SERVER_NAME:=localhost}/" --connect-to "::localhost:5000"
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
- "127.0.0.1:5000:5000" - "127.0.0.1:5000:5000"
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/"] test: ["CMD", "/web/check-running"]
interval: 5m interval: 5m
memcached: memcached:
image: memcached image: memcached
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment