feat: add docker healthcheck to redis service

This commit is contained in:
Nicolas Meienberger 2023-04-12 23:46:12 +02:00 committed by Nicolas Meienberger
parent 3ac74129fd
commit e12d342288
4 changed files with 28 additions and 0 deletions

View file

@ -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}

View file

@ -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}

View file

@ -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}

View file

@ -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}