Add docker health checks, CSV import docs
This commit is contained in:
@@ -17,6 +17,12 @@ services:
|
||||
networks:
|
||||
- tckdev_net
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pgrep -f php-fpm > /dev/null 2>&1 || exit 1"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
environment:
|
||||
- TZ=Asia/Kuala_Lumpur
|
||||
- RUN_MIGRATIONS=true
|
||||
@@ -58,9 +64,16 @@ services:
|
||||
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
depends_on:
|
||||
- app
|
||||
app:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- tckdev_net
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -q http://localhost/ -O /dev/null || exit 1"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
environment:
|
||||
- TZ=Asia/Kuala_Lumpur
|
||||
|
||||
@@ -83,6 +96,12 @@ services:
|
||||
networks:
|
||||
- tckdev_net
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -q http://localhost:80/login -O /dev/null || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
|
||||
Reference in New Issue
Block a user