Compare commits

...

2 Commits

Author SHA1 Message Date
Maxi Quoß 1de1d407a3 v1.0.5 2021-10-15 02:26:04 +02:00
Maxi Quoß 088eee39e1 set healthcheck in dockerfile 2021-10-15 02:25:33 +02:00
3 changed files with 4 additions and 4 deletions
+3
View File
@@ -22,4 +22,7 @@ RUN apt-get update && \
apt-get -y install iputils-ping nmap curl && \
rm -rf /var/lib/apt/lists/*
HEALTHCHECK --interval=10s \
CMD curl -fs "http://localhost:$DJANGO_PORT/health/" || exit 1
CMD ["./run.sh"]
+1 -1
View File
@@ -142,4 +142,4 @@ STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
VERSION = "v1.0.4"
VERSION = "v1.0.5"
-3
View File
@@ -18,9 +18,6 @@ services:
- POSTGRES_PASSWORD=upsnap
- PING_INTERVAL=5
- ENABLE_NOTIFICATIONS=True
healthcheck:
test: curl --fail -s http://localhost:$DJANGO_PORT/health/ || exit 1
interval: 10s
depends_on:
- upsnap_redis
- upsnap_postgres