diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 248f4ef5..ca013cda 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -30,6 +30,11 @@ services: - 6379:6379 volumes: - ./data/redis:/data + healthcheck: + test: ['CMD', 'redis-cli', 'ping'] + interval: 5s + timeout: 10s + retries: 120 networks: - tipi_main_network @@ -41,6 +46,8 @@ services: depends_on: tipi-db: condition: service_healthy + tipi-redis: + condition: service_healthy environment: NODE_ENV: development INTERNAL_IP: ${INTERNAL_IP} diff --git a/docker-compose.rc.yml b/docker-compose.rc.yml index fce6b0de..9805c6dd 100644 --- a/docker-compose.rc.yml +++ b/docker-compose.rc.yml @@ -42,6 +42,11 @@ services: restart: unless-stopped volumes: - ./data/redis:/data + healthcheck: + test: ['CMD', 'redis-cli', 'ping'] + interval: 5s + timeout: 10s + retries: 120 networks: - tipi_main_network @@ -53,6 +58,8 @@ services: depends_on: tipi-db: condition: service_healthy + tipi-redis: + condition: service_healthy environment: NODE_ENV: production INTERNAL_IP: ${INTERNAL_IP} diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 7ca8787d..546be642 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -41,6 +41,11 @@ services: restart: unless-stopped volumes: - ./data/redis:/data + healthcheck: + test: ['CMD', 'redis-cli', 'ping'] + interval: 5s + timeout: 10s + retries: 120 networks: - tipi_main_network @@ -55,6 +60,8 @@ services: depends_on: tipi-db: condition: service_healthy + tipi-redis: + condition: service_healthy environment: NODE_ENV: production INTERNAL_IP: ${INTERNAL_IP} diff --git a/docker-compose.yml b/docker-compose.yml index d36296f9..6c99f8d3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,6 +41,11 @@ services: restart: unless-stopped volumes: - ./data/redis:/data + healthcheck: + test: ['CMD', 'redis-cli', 'ping'] + interval: 5s + timeout: 10s + retries: 120 networks: - tipi_main_network @@ -53,6 +58,8 @@ services: depends_on: tipi-db: condition: service_healthy + tipi-redis: + condition: service_healthy environment: NODE_ENV: production INTERNAL_IP: ${INTERNAL_IP}