diff --git a/docker-compose.yml b/docker-compose.yml index a6069cd..563287a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,10 @@ services: volumes_from: - tmp depends_on: - - migration + redis: + condition: service_healthy + migration: + condition: service_started migration: image: pathogen/neptune:latest @@ -24,6 +27,11 @@ services: - ${PORTAINER_GIT_DIR}:/code - ${NEPTUNE_LOCAL_SETTINGS}:/code/app/local_settings.py - ${NEPTUNE_DATABASE_FILE}:/code/db.sqlite3 + volumes_from: + - tmp + depends_on: + redis: + condition: service_healthy # pyroscope: # image: pyroscope/pyroscope @@ -38,15 +46,20 @@ services: image: busybox command: chmod -R 777 /var/run/redis volumes: - - /var/run/redis + - /var/run/redis redis: - image: redis - command: redis-server /etc/redis.conf - volumes: - - ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf - volumes_from: - - tmp + image: redis + command: redis-server /etc/redis.conf + volumes: + - ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf + volumes_from: + - tmp + healthcheck: + test: "redis-cli -s /var/run/redis/redis.sock ping" + interval: 2s + timeout: 2s + retries: 15 networks: default: diff --git a/docker/docker-compose.prod.yml b/docker/docker-compose.prod.yml index e8b5741..866f748 100644 --- a/docker/docker-compose.prod.yml +++ b/docker/docker-compose.prod.yml @@ -14,9 +14,12 @@ services: env_file: - ../stack.env volumes_from: - - tmp + - tmp depends_on: - - migration + redis: + condition: service_healthy + migration: + condition: service_started migration: image: pathogen/neptune:latest @@ -26,20 +29,30 @@ services: - ${PORTAINER_GIT_DIR}:/code - ${NEPTUNE_LOCAL_SETTINGS}:/code/app/local_settings.py - ${NEPTUNE_DATABASE_FILE}:/code/db.sqlite3 + volumes_from: + - tmp + depends_on: + redis: + condition: service_healthy tmp: image: busybox command: chmod -R 777 /var/run/redis volumes: - - /var/run/redis + - /var/run/redis redis: - image: redis - command: redis-server /etc/redis.conf - volumes: - - ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf - volumes_from: - - tmp + image: redis + command: redis-server /etc/redis.conf + volumes: + - ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf + volumes_from: + - tmp + healthcheck: + test: "redis-cli -s /var/run/redis/redis.sock ping" + interval: 2s + timeout: 2s + retries: 15 networks: default: diff --git a/docker/prod/requirements.prod.txt b/docker/prod/requirements.prod.txt index 5207f36..f752602 100644 --- a/docker/prod/requirements.prod.txt +++ b/docker/prod/requirements.prod.txt @@ -2,7 +2,7 @@ wheel django django-crispy-forms crispy-bulma -opensearch-py +#opensearch-py stripe django-rest-framework numpy @@ -14,7 +14,9 @@ cryptography siphashc redis sortedcontainers -manticoresearch +#manticoresearch django-debug-toolbar django-debug-toolbar-template-profiler ujson +orjson +pydruid diff --git a/docker/requirements.dev.txt b/docker/requirements.dev.txt index 473f04e..ff393e8 100644 --- a/docker/requirements.dev.txt +++ b/docker/requirements.dev.txt @@ -2,7 +2,7 @@ wheel django django-crispy-forms crispy-bulma -opensearch-py +#opensearch-py stripe django-rest-framework numpy @@ -13,7 +13,9 @@ cryptography siphashc redis sortedcontainers -manticoresearch +#manticoresearch django-debug-toolbar django-debug-toolbar-template-profiler ujson +orjson +pydruid diff --git a/requirements.txt b/requirements.txt index 1dfeda1..12133d4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ django pre-commit django-crispy-forms crispy-bulma -opensearch-py +#opensearch-py stripe django-rest-framework numpy @@ -14,7 +14,9 @@ cryptography siphashc redis sortedcontainers -manticoresearch +#manticoresearch django-debug-toolbar django-debug-toolbar-template-profiler ujson +orjson +pydruid \ No newline at end of file