Update requirements and setup Docker healthchecks
This commit is contained in:
parent
0c60413e5b
commit
845b02b0eb
|
@ -15,7 +15,10 @@ services:
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- tmp
|
- tmp
|
||||||
depends_on:
|
depends_on:
|
||||||
- migration
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
|
migration:
|
||||||
|
condition: service_started
|
||||||
|
|
||||||
migration:
|
migration:
|
||||||
image: pathogen/neptune:latest
|
image: pathogen/neptune:latest
|
||||||
|
@ -24,6 +27,11 @@ services:
|
||||||
- ${PORTAINER_GIT_DIR}:/code
|
- ${PORTAINER_GIT_DIR}:/code
|
||||||
- ${NEPTUNE_LOCAL_SETTINGS}:/code/app/local_settings.py
|
- ${NEPTUNE_LOCAL_SETTINGS}:/code/app/local_settings.py
|
||||||
- ${NEPTUNE_DATABASE_FILE}:/code/db.sqlite3
|
- ${NEPTUNE_DATABASE_FILE}:/code/db.sqlite3
|
||||||
|
volumes_from:
|
||||||
|
- tmp
|
||||||
|
depends_on:
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
# pyroscope:
|
# pyroscope:
|
||||||
# image: pyroscope/pyroscope
|
# image: pyroscope/pyroscope
|
||||||
|
@ -47,6 +55,11 @@ services:
|
||||||
- ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf
|
- ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- tmp
|
- tmp
|
||||||
|
healthcheck:
|
||||||
|
test: "redis-cli -s /var/run/redis/redis.sock ping"
|
||||||
|
interval: 2s
|
||||||
|
timeout: 2s
|
||||||
|
retries: 15
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -16,7 +16,10 @@ services:
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- tmp
|
- tmp
|
||||||
depends_on:
|
depends_on:
|
||||||
- migration
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
|
migration:
|
||||||
|
condition: service_started
|
||||||
|
|
||||||
migration:
|
migration:
|
||||||
image: pathogen/neptune:latest
|
image: pathogen/neptune:latest
|
||||||
|
@ -26,6 +29,11 @@ services:
|
||||||
- ${PORTAINER_GIT_DIR}:/code
|
- ${PORTAINER_GIT_DIR}:/code
|
||||||
- ${NEPTUNE_LOCAL_SETTINGS}:/code/app/local_settings.py
|
- ${NEPTUNE_LOCAL_SETTINGS}:/code/app/local_settings.py
|
||||||
- ${NEPTUNE_DATABASE_FILE}:/code/db.sqlite3
|
- ${NEPTUNE_DATABASE_FILE}:/code/db.sqlite3
|
||||||
|
volumes_from:
|
||||||
|
- tmp
|
||||||
|
depends_on:
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
tmp:
|
tmp:
|
||||||
image: busybox
|
image: busybox
|
||||||
|
@ -40,6 +48,11 @@ services:
|
||||||
- ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf
|
- ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- tmp
|
- tmp
|
||||||
|
healthcheck:
|
||||||
|
test: "redis-cli -s /var/run/redis/redis.sock ping"
|
||||||
|
interval: 2s
|
||||||
|
timeout: 2s
|
||||||
|
retries: 15
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -2,7 +2,7 @@ wheel
|
||||||
django
|
django
|
||||||
django-crispy-forms
|
django-crispy-forms
|
||||||
crispy-bulma
|
crispy-bulma
|
||||||
opensearch-py
|
#opensearch-py
|
||||||
stripe
|
stripe
|
||||||
django-rest-framework
|
django-rest-framework
|
||||||
numpy
|
numpy
|
||||||
|
@ -14,7 +14,9 @@ cryptography
|
||||||
siphashc
|
siphashc
|
||||||
redis
|
redis
|
||||||
sortedcontainers
|
sortedcontainers
|
||||||
manticoresearch
|
#manticoresearch
|
||||||
django-debug-toolbar
|
django-debug-toolbar
|
||||||
django-debug-toolbar-template-profiler
|
django-debug-toolbar-template-profiler
|
||||||
ujson
|
ujson
|
||||||
|
orjson
|
||||||
|
pydruid
|
||||||
|
|
|
@ -2,7 +2,7 @@ wheel
|
||||||
django
|
django
|
||||||
django-crispy-forms
|
django-crispy-forms
|
||||||
crispy-bulma
|
crispy-bulma
|
||||||
opensearch-py
|
#opensearch-py
|
||||||
stripe
|
stripe
|
||||||
django-rest-framework
|
django-rest-framework
|
||||||
numpy
|
numpy
|
||||||
|
@ -13,7 +13,9 @@ cryptography
|
||||||
siphashc
|
siphashc
|
||||||
redis
|
redis
|
||||||
sortedcontainers
|
sortedcontainers
|
||||||
manticoresearch
|
#manticoresearch
|
||||||
django-debug-toolbar
|
django-debug-toolbar
|
||||||
django-debug-toolbar-template-profiler
|
django-debug-toolbar-template-profiler
|
||||||
ujson
|
ujson
|
||||||
|
orjson
|
||||||
|
pydruid
|
||||||
|
|
|
@ -3,7 +3,7 @@ django
|
||||||
pre-commit
|
pre-commit
|
||||||
django-crispy-forms
|
django-crispy-forms
|
||||||
crispy-bulma
|
crispy-bulma
|
||||||
opensearch-py
|
#opensearch-py
|
||||||
stripe
|
stripe
|
||||||
django-rest-framework
|
django-rest-framework
|
||||||
numpy
|
numpy
|
||||||
|
@ -14,7 +14,9 @@ cryptography
|
||||||
siphashc
|
siphashc
|
||||||
redis
|
redis
|
||||||
sortedcontainers
|
sortedcontainers
|
||||||
manticoresearch
|
#manticoresearch
|
||||||
django-debug-toolbar
|
django-debug-toolbar
|
||||||
django-debug-toolbar-template-profiler
|
django-debug-toolbar-template-profiler
|
||||||
ujson
|
ujson
|
||||||
|
orjson
|
||||||
|
pydruid
|
Loading…
Reference in New Issue