Add docker health checks, CSV import docs
This commit is contained in:
@@ -17,6 +17,12 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- tckdev_net
|
- tckdev_net
|
||||||
restart: unless-stopped
|
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:
|
environment:
|
||||||
- TZ=Asia/Kuala_Lumpur
|
- TZ=Asia/Kuala_Lumpur
|
||||||
- RUN_MIGRATIONS=true
|
- RUN_MIGRATIONS=true
|
||||||
@@ -58,9 +64,16 @@ services:
|
|||||||
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
depends_on:
|
depends_on:
|
||||||
- app
|
app:
|
||||||
|
condition: service_healthy
|
||||||
networks:
|
networks:
|
||||||
- tckdev_net
|
- 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:
|
environment:
|
||||||
- TZ=Asia/Kuala_Lumpur
|
- TZ=Asia/Kuala_Lumpur
|
||||||
|
|
||||||
@@ -83,6 +96,12 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- tckdev_net
|
- tckdev_net
|
||||||
restart: unless-stopped
|
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:
|
volumes:
|
||||||
pgdata:
|
pgdata:
|
||||||
|
|||||||
@@ -93,6 +93,8 @@ These routes require both authentication and admin privileges (`admin` middlewar
|
|||||||
|---|---|
|
|---|---|
|
||||||
| `GET /stationmanagement` | List all stations (paginated, 5 per page). |
|
| `GET /stationmanagement` | List all stations (paginated, 5 per page). |
|
||||||
| `POST /stationmanagement/store` | Add a new station. |
|
| `POST /stationmanagement/store` | Add a new station. |
|
||||||
|
| `POST /stationmanagement/import` | Bulk import stations from a CSV file. |
|
||||||
|
| `GET /stationmanagement/csvtemplate` | Download a sample CSV template for station imports. |
|
||||||
| `POST /stationmanagement/{stationid}/update` | Edit an existing station. |
|
| `POST /stationmanagement/{stationid}/update` | Edit an existing station. |
|
||||||
| `DELETE /stationmanagement/{stationid}/delete` | Delete a station. |
|
| `DELETE /stationmanagement/{stationid}/delete` | Delete a station. |
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user