From 5afca3c4b2a9ac4a41212cadc32b760aee86cb3f Mon Sep 17 00:00:00 2001 From: Albert Mourato Date: Fri, 8 Jun 2018 16:21:41 -0300 Subject: [PATCH] Adds healthcheck --- Dockerfile | 1 + wedeploy.json | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6b51da1..9cd4cb0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,4 +12,5 @@ COPY ./mysite/ . RUN python manage.py makemigrations && python manage.py migrate EXPOSE 8000 + CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] \ No newline at end of file diff --git a/wedeploy.json b/wedeploy.json index 4e8081a..2f2dfd0 100644 --- a/wedeploy.json +++ b/wedeploy.json @@ -1,4 +1,7 @@ { "id": "django", - "port": 8000 + "port": 8000, + "healthCheck": { + "url": "localhost:8000" + } } \ No newline at end of file