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

Add healthcheck which will also warm up homepage

parent 5a9de95cc471
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,7 @@
python3-setuptools \
uwsgi \
uwsgi-plugin-python3 \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN useradd --no-log-init -r -M web
......
version: '2'
version: '2.1'
services:
website:
......@@ -10,6 +10,9 @@
ports:
- "127.0.0.1:5000:5000"
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/"]
interval: 5m
memcached:
image: memcached
ports:
......
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