mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-17 06:32:51 +00:00
no message
This commit is contained in:
parent
959f9454d8
commit
aa4f7c8536
@ -84,6 +84,15 @@ class IndexController extends InvokeController
|
|||||||
return Redirect::to(Base::fillUrl('api/system/version'), 301);
|
return Redirect::to(Base::fillUrl('api/system/version'), 301);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 健康检查
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function health()
|
||||||
|
{
|
||||||
|
return "ok";
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 头像
|
* 头像
|
||||||
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\Routing\ResponseFactory|\Illuminate\Http\Response|\Symfony\Component\HttpFoundation\BinaryFileResponse
|
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\Routing\ResponseFactory|\Illuminate\Http\Response|\Symfony\Component\HttpFoundation\BinaryFileResponse
|
||||||
|
|||||||
@ -22,6 +22,11 @@ services:
|
|||||||
MYSQL_DB_NAME: "${DB_DATABASE}"
|
MYSQL_DB_NAME: "${DB_DATABASE}"
|
||||||
MYSQL_USERNAME: "${DB_USERNAME}"
|
MYSQL_USERNAME: "${DB_USERNAME}"
|
||||||
MYSQL_PASSWORD: "${DB_PASSWORD}"
|
MYSQL_PASSWORD: "${DB_PASSWORD}"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost:${LARAVELS_LISTEN_PORT}/health"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
networks:
|
networks:
|
||||||
- extnetwork
|
- extnetwork
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -40,6 +45,14 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
||||||
- ./:/var/www
|
- ./:/var/www
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost/health"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
depends_on:
|
||||||
|
php:
|
||||||
|
condition: service_healthy
|
||||||
networks:
|
networks:
|
||||||
- extnetwork
|
- extnetwork
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@ -91,6 +104,11 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
HOST_PWD: "${PWD}"
|
HOST_PWD: "${PWD}"
|
||||||
RUN_MODE: "strict"
|
RUN_MODE: "strict"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost/health"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
networks:
|
networks:
|
||||||
- extnetwork
|
- extnetwork
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
@ -93,7 +93,7 @@ server {
|
|||||||
proxy_set_header Server-Port $server_port;
|
proxy_set_header Server-Port $server_port;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection $connection_upgrade;
|
proxy_set_header Connection $connection_upgrade;
|
||||||
proxy_pass http://appstore:8080/;
|
proxy_pass http://appstore/;
|
||||||
}
|
}
|
||||||
|
|
||||||
include /var/www/docker/appstore/config/*/nginx.conf;
|
include /var/www/docker/appstore/config/*/nginx.conf;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user